Jump to content

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


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...