express-cloudflare-ip
v0.0.2
Published
Tool to extract real ip for cloudflare reverse proxy
Downloads
15,937
Maintainers
Readme
Express Cloudflare Ip
Middleware to get client ip for connections through cloudflare reverse proxy.
Usage
import express from 'express';
import { expressCloudflareIp } from 'express-cloudflare-ip';
const app = express();
app.use(expressCloudflareIp());
app.use((req, res) => {
console.log(req.cloudflareIp);
});