Claude Posted June 15, 2020 Posted June 15, 2020 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
Claude Posted June 15, 2020 Author Posted June 15, 2020 (edited) 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 June 15, 2020 by Claude
Claude Posted June 15, 2020 Author Posted June 15, 2020 (edited) Can we ban ISP via htaccess? Tel Shenzhen Aosida Communication Co. in Singapore, HUAWEI CLOUDS, ...? Edited June 15, 2020 by Claude
CoffeeCake Posted June 15, 2020 Posted June 15, 2020 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 Claude 1
Claude Posted June 15, 2020 Author Posted June 15, 2020 Thank you Paul, I will look at this link, I hope to know how to properly store these IPs under htaccess.Regards,Claude
Recommended Posts