Jump to content

How to write a range IP address to block it on the server?

Featured Replies

Posted

Hello everybody,

I want to block a malicious robot, AspiegelBot, on my server, so as not to name it, whose IP address fluctuates over two blocks, as you can see below:

144.119. [160-169] .0 / 255

As you can see there are two ranges, for the third block, the IP varies between 160 and 169, as for the last block, it starts at 0 and apparently ends at 255.

Is my writing of the ranges correct? 144.119. [160-169] .0 / 255

Thank you in advance,

Best regards,

Claude

  • Author
My server loads blocking only valid IPs. Nevertheless I suspect under cPanel that there must be a writing different from mine which would work correctly.

Edited by Claude

  • Author

Can we ban ISP via htaccess? Tel Shenzhen Aosida Communication Co. in Singapore, HUAWEI CLOUDS, ...?

Edited by Claude

34 minutes ago, Claude said:

Can we ban ISP via htaccess? Tel Shenzhen Aosida Communication Co. in Singapore, HUAWEI CLOUDS, ...?

If you're wanting to ban the web server itself (presumably apache in your case), you can ban IP ranges by providing a partial IP address or by using CIDR notation. See: https://httpd.apache.org/docs/2.4/howto/access.html

  • Author
Thank you Paul, I will look at this link, I hope to know how to properly store these IPs under htaccess.

Regards,

Claude

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.