AIOWPS and Cloudflare: IP Blacklist
-
Dear,
I’m an happy user of AIOWPS. I noticed that, even if I blacklist an IP (I mean if I go on Firewall 404 errors and click on “Blacklist IP”) the IP’s are not really blocked.
So I looked for the source of the issue and discovered that Cloudflare only sends its own IPs.
But Cloudflare also sends the original client IP in HTTP header using CF-Connecting-IP and X-Forwarded-For.So, in .htaccess file it is possible to block the malicious IPs (let’s say we want to block 1.1.1.1) via the following rule
RewriteCond %{HTTP:CF-Connecting-IP} ^1\.1\.1\.1$
RewriteRule ^ – [F,L]Would it be possible to instruct AIOWPS to automatically write blocking rules like the above instead of the standard ones “Deny from 1.1.1.1” if the IP Retrieval setting is set to HTTP_CF_CONNECTING_IP or HTTP_X_FORWARDED_FOR?
Best
Nicola
- The topic ‘AIOWPS and Cloudflare: IP Blacklist’ is closed to new replies.