Page rules and .htaccess



Using Cloudflare CDN on one of my websites, everything seems to be working fine, however I also have some .htaccess rules which limits the accessibility of a subfolder based on IP address, as everything goes through Cloudflare this no longer works, disable HTTP and DNS proxy and it’s working again.

I have added a page rule in Cloudflare which should by pass the cache for the folder


but this doesn’t seem to work, any ideas as to what I am doing wrong with page rules?


As long as your domain is set to :orange: in Cloudflare DNS, all traffic is routed through Cloudflare. Bypass Cache just means Cloudflare doesn’t store your data for the next visitor.

You need to restore Visitor IP. Quite often, hosts already have this installed, but here it is for Apache:


closed #3

This topic was automatically closed after 14 days. New replies are no longer allowed.