Blocking IP range

How to block an IP range like .htaccess?

Order Deny,Allow
Deny from 192.200.300.400

I can use “Deny from 192” or “Deny from 192.200” or “Deny from 192.200.300” and any following value is blocked.

Also I would like to know if there is any way to block a whole hosting (like OVH).

Thank you in advance.

Create a firewall rule throgh your Cloudflare dashboard and block their ASNs or subnets.

1 Like

I had no idea about AS numbers. I have found them on this website
I have blocked a few ISPs from Firewall > Tools
Thank you for the info.

This topic was automatically closed after 30 days. New replies are no longer allowed.