Forum Moderators: phranque
One thing you'll notice about these requests --if they're like the ones I always get-- is that they are malformed, and never result in a successful transfer, even if you take no steps to block them. The usual server response is 400-Malformed Request, if I recall correctly.
The purpose of these requests is to serve as a nuisance, in order to make ISC/SANS look bad... This is a "revenge pest" from someone who doesn't like ISC/SANS's efforts to report on internet abuse, most likely using a network of innocent-but-compromised computers as a botnet.
Jim
Respectfully: I manage to keep all the CodeRed garbage and much besides out of my logs for specific domains by using the following in httpd.conf:
SetEnvIfNoCase Request_URI "^/string to exclude/" drop
and then
CustomLog /var/log/httpd/www.mydomainname.com-access_log combined env=!drop
between <VirtualHost> and </VirtualHost>
but replacing "string to exclude" with w00tw00t.at.ISC.SANS.DFind:) throws up an error message because Apache gets confused with the ) at the end. I've tried commenting it out, ie "\)" but this doesn't work either. What I need is the correct syntax, if such syntax is at all possible. Help! It's driving me crazy.
Hasn't anyone had any success in stopping this rubbish getting into log files? There has to be a way before I block the whole world off.
213.215.41.138 - - [31/Oct/2007:02:18:35 +0000] "GET /w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1" 400 316 "-" "-"
[edited by: jdMorgan at 11:59 am (utc) on Oct. 31, 2007]
[edit reason] Disabled smilies in user-agent string [/edit]
It may be that if the error handler is invoked, many or all of the Apache modules are not executed, leading to the problem of not being able to suppress logging -- I'm not sure, just wanted to mention it.
Jim
Custom logging (see mod_log_config CustomLog [httpd.apache.org]) can be set up in httpd.conf to drop log entries based on server variables or server response codes, so in this case the logging could be suppressed based on the 400 response, or by using mod_setenvif, to set a server variable based on the user-agent string itself, and then doing conditional logging based on that variable.
Jim