How to protect your website that is on Cloudflare plus Logs

The post above about .htaccess code and Cloudflare IPs, which was part of the article
is no longer possible to apply here on hosting.

The admin and I discovered “something” that led to recent changes on the servers.

Because of those changes, now there is no need to retrieve the CF-Connecting-IP (visitor IP) through a PHP script,
now the server does it by itself !

But for that reason, the specified .htaccess code can’t see anymore the Cloudflare server’s IPs - it sees the visitor IP
and if it compares it with the existing IP list → of course it will return 403.

I deleted that part from the article and an alternative solution was added
and I hereby thank the admin for that.

7 Likes