How to block ip range

I want to block ip range(Example - 192.168.0.1-192.168.0.40)
But I can’t block.I’m facing error.Plz show me how to block ip range with picture.

For the tool, I believe you can only block one IP at a time. If you use Cloudflare, it’s quite simple to do with a firewall, otherwise you can use .htaccess.

If you are using .htaccess, just create a new .htaccess file in the /htdocs folder and add the following code.

Order Allow,Deny
Deny from 192.168.0.1/40
Allow from all

Also, note that it is quite easy to get around IP restrictions, as they can be changed, or hidden with a VPN.

Best of luck!

3 Likes

The IP Blocker tool does support IP ranges, but those ranges must be in CIDR notation. You can’t just specify and arbitrary starting IP and ending IP and block everything in between.

If you don’t know the CIDR notation of the IP addresses you want to block, you can use an online calculator to find it. Like this one:

https://account.arin.net/public/cidrCalculator

3 Likes

Thank Bro

2 Likes

Thank You Admin

2 Likes

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