This pathetic business of unsecured Windows PCs littering my logfiles with bogus porn referers should stop today. I’ll still get the requests and the bandwidth waste will continue, but at least I won’t have to look at it everyday. If you’re being troubled by this, you’re welcome to use the Apache config snippets below. I *hope* this works: it’s hard to tell if you’ve been successful when you’re trying to make something invisible.
SetEnvIfNoCase Referer "^http://(www?).some.port.site.com/(.*)" dontlog # replace some.port.site.com with whatever you need to SetEnvIfNoCase Referer "(.*)xrenwl(.*)" dontlog RedirectMatch (.*)/(html|scripts|root.exe|cmd.exe|default.ida?).* /goaway.html SetEnvIf Request_URI "/(html|scripts|root.exe|cmd.exe|default.ida?|goaway.html) " dontlog CustomLog /usr/local/weblogs/httpd-access.log combined env=!dontlog