Forum Moderators: phranque
SetEnvIfNoCase Referer sirseek bad_bot
or more generic:
SetEnvIfNoCase Referer window\.location bad_bot
or go for both?
and is it fine to just place it among my 'SetEnvIfNoCase User-Agent' lines in htaccess?
I do understand it is coming from malware infected visitor machines btw.
There's no order of precedence when placing these lines, however I group then together aplhabetically (different categrories) for more accurate reference.
Hopefully you rezlize that these lines are not go to remove the entries from your visitor logs? The referrers will still be there for your eyes!
Rather, the spammer will receive a 403, rather than a 200.
Don
<SCRIPT>window.location='http://www.sirseek.com'</script>
perhaps a better strategy would be to block <SCRIPT>
SetEnvIfNoCase Referer \<SCRIPT\> ?
yes I realized after posting that it will not stop the log spamming, is there an apf firewall shell command that can block by referrer?
It would be best to block these requests at the firewall of your server, so that they don't ever reach your server and get logged. But if you can't do that, then block the domain in your own PC's firewall, or add a 'hosts' file entry to map that domain to localhost (127.0.0.1) so your PC will never request it from the Web.
Jim