How prevent bypass cloudflare

Recently, I noticed that when I set my site’s IP with a host domain name header, it easily passes through Cloudflare in Curl’s request, but I checked this for other sites, it does not pass and it encounters Cloudflare Is there a problem with my config server? Or DNS domain settings? What is the solution?
ex : curl -H"Host:example.com" http://ip`

You can configure your webserver to only allow Cloudflare’s ip ranges, which are located at https://www.cloudflare.com/en-gb/ips/, then others won’t be able to directly fetch from your webserver anymore.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.