Detecting IP Abuse at DreamHost
By Toni on December 1st, 2008 in Dreamhost
I just came across a handy tool for DreamHost users called ip-abuse-lookup.sh. This shell script analyzes error and access logs for a domain, looking for the IP addresses that have connected to your site the most often.
It checks for IP addresses that cause a Concurrent Connection Limit Exceeded error, which is a strong indication they are an automated bot of some kind. The script also scans for Internal Recursion Errors which can have very negatively effect your speed and server resources often caused by poorly configured .htaccess files.
After the script finishes scanning your logs, it will present you with the .htaccess code you can add to your site’s root .htaccess file to block the IP addresses the script found to be abusive.
For more info: DreamHost wiki page for ip-abuse-lookup.sh – with detailed instructions and full source code.
Related posts:
- How to Report Abuse to DreamHost If you think a DreamHost customer is behind illegal activities...
- Where is My DreamHost Error Log? Looking for your error logs for a DreamHost hosted site?...
- Easy Custom Error Pages at DreamHost Making a custom error page with DreamHost is easy. DreamHost...
- Accessing Website Statistics at Dreamhost Q. Where are my stats on my Dreamhost account? A....
- Stop Hotlinking via .htaccess While Dreamhost offers it’s customers an easy way to prevent...
Tags: Dreamhost • htaccess • IP abuse • shell