Not allowing users to access the website using

Hi everyone
I’m using the Cloudflare DNS in front of the netlify CDNs for my website, which prevents users from accessing some specific URLs.
Unfortunately, users still can access those contents, by entering (my project’s Netlify subdomain)
Is there any way that I can restrict access to this domain to only requests which are coming from the Cloudflare?

1 Like

Hi, @Eddie_CooRo. We would recommend creating a redirect for this purpose:

# Optional: Redirect default Netlify subdomain to primary domain* 301!

Would you please try creating a rule similar to that and let us know if that meets your requirements?