Blocking bots from some specific hosts
-
Hi there
I with a combination of security plugins, including Wordfence (free version) & a couple of others largely managed to prevent spammers and automated logins from getting on to the site.
Because I have frequent login attempts, I have also set Wordfence to block every non-existent username for a day and once in a while, after looking at the list of blocked users, manually permanently block really non-existent users.It’s quite annoying, though all the same to see these attempts.
Here is a typical example reported by Wordfence:User IP: 23.94.243.22
User hostname: 23-94-243-22-host.colocrossing.com
User location: Los Angeles, United Statesor
User IP: 192.3.241.254
User hostname: 192-3-241-254-host.colocrossing.com
User location: Los Angeles, United StatesAlthough not all IPs show the User hostname as being related to “host.colocrossing.com” and the characters/numbers before “…host.colocrossing.com” are always changing, this name “host.colocrossing.com” appears quite frequently.
Is it possible to block ANYTHING, i.e. whatever hostname is related to this “host.colocrossing.com” by way of .htaccess from accessing the site at all? I assume the host is exclusively associated with these automated bots which are up to no good.
If so, I would appreciate the exact code to insert in .htaccess.
Thank you in advance.
- The topic ‘Blocking bots from some specific hosts’ is closed to new replies.