![]() |
I noticed recently that a huge chunk of the bandwidth allocation on my server was being eaten by Code Red / Nimda worms bringing up the 404 error page, together with all its constituent parts.
Well that pissed me off :mad: So I put together a tiny little script that I inserted at the beginning of my 404 error script, and now Nimda doesn't eat my bandwith at all :D To use this, your 404 error page must be parsed as PHP. To set this up in Apache, open httpd.conf (or a .htaccess file for your site) and add (or edit) this line: Code:
ErrorDocument 404 /webroot/fourofour.php Next, open up your fourofour.php file, and right at the beginning of the file, put in this code: PHP Code:
When the next worm goes wild, simply add its signature to the $worms array and it will be filtered too. |
I'll install it as soon as i get the new version... ;)
|
Sweet Deal Kier :) This is on its way into my error redirections.
|
cheers gonna have to redownlad putty again it seems.
|
All times are GMT. The time now is 08:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|