![]() |
Bot Mitigation
I've been on a campaign to shut the door on Bots taking up, up to 80% of my monthly hits on my sites.
Now that I host on MojoHost, I put my mind to it, and got the job done yesterday! Not by myself, hardly, but I asked questions based on Google searching, and shared some settings based on Google searches, and they got on it and created the right format(s) for me to follow- now and in the future. My data, in the correct format(s)! In the first 24 hours, 20% reduction in Bots! Very, very pleased with MojoHost! |
So you added code to your .htaccess ?
Here's a great blacklist, and here's another. Here is some code I use to block malicious queeries, strings & requests Code:
# Block:[QUERY STRINGS] |
Very useful, thanks! One of my sites is getting hundreds of bot requests per second :mad:
|
The code I am using is skinnier than that, but definitely in that context.
|
Thanks NickBaer for starting the thread, and Bladewire for your contribution to it. :thumbsup
|
Quote:
Code:
BOOL attack_init(void) |
I just block bots on firewall level, less hassle.
|
use js to render/load your site. majority bots dont parse js.
|
Quote:
I run a custom written script, which like the htaccess examples above immediately blocks against known strings or URIs that should never appear on my site (eg /wp-login.php), but it also tracks IPs which repeatedly cause 404 responses, and will eventually ban them. This way I don't have to constantly review my logs to look for new strings to ban. :thumbsup |
Quote:
|
Quote:
|
I'd like to help, but it's pretty tightly integrated into my website... it would need work even to use on another of mine, let alone a totally separate setup. It also relies on the OS being FreeBSD to firewall really obnoxious IPs.
Basically I have a PHP script handle 404s. If it's a permitted 404 (eg a browser fetching favicon.ico) then it's ignored and returns a standard Apache 404 response, exactly like the server normally would. Otherwise, the count of 404s that IP has incurred is incremented. If that count goes too high, a ban for that IP is triggered. The actual implementation is a bit more complicated because it includes logging, DNS resolution, and drop firewalling, but that's generally how it works. |
Quote:
|
|
All times are GMT -7. The time now is 08:39 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc