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.