I’ve set up a firewall rule to block all access to my site except for a specific list of IP addresses. However, I’m still able to access the site from any device I own. I’ve also tried creating additional firewall rules (e.g., user-agent blocking), but nothing seems to work. I have proxies enabled, and from the developer tools, I can see that my server traffic is coming through Cloudflare. My code is deployed on OnRender.
If you are CNAMEing to something.onrender.com it looks like Render use a CNAME setup on Cloudflare, so requests won’t pass through your Cloudflare zone.
I’m using an A record to point to OnRender’s IP address, though I’m not sure if that makes a difference. Is there any way to bypass OnRender’s Cloudflare and use my own instead? Or do I need to switch hosting providers?