Block ip for subdomain

Hi I have a subdomain

I want to restrict access of all IPs to sub and only add IPs manually to the whitelist

Does cloudflare have this feature?
Thanks for the tips
Thanks dear cloudflare!

You can do this with the following firewall rule set to “Block”

( eq "" and not ip.src in {})

Thanks and what should I do if I want to open the IP?

Open? You simply add the desired addresses in the right field, that’s it. has all on that.

1 Like

How about Is it possible to give an example?

Thank you very much for your response

I provided an example in the first response

( eq "" and not ip.src in {})

The mentioned link goes more into details too.


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