The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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 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 ![]() 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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
I'll install it as soon as i get the new version...
|
|
#3
|
||||
|
||||
|
Sweet Deal Kier
This is on its way into my error redirections.
|
|
#4
|
|||
|
|||
|
cheers gonna have to redownlad putty again it seems.
|
![]() |
|
|