When restricting to just CloudFlare IP, getting 404s

When our server host sets up restriction so only IPs from Cloudflare are allowed through (to prevent visitors from bypassing Cloudflare by entering the website IP address into the address bar), it causes 404 for visitors. They cannot access any page. The homepage shows a styled 404 and all other pages visited are a plain text 404.

Is there something we have misconfigured on Cloudflare?

The host had modified nginx vhost to only allow IPs sent through CloudFlare.



Thank you DotMrCode, I will give that a try this week, especially the HTaccess part

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