Msg#: 4575562 posted 2:25 am on May 20, 2013 (gmt 0)
SetEnvIf User-Agent Mozilla/4.0 (Windows 98; US) Opera 10.00 [en] GoAway=1
Ouch. I hope that wasn't a literal quote from htaccess. What mod_setenvif thinks this means is:
If the user-agent is "Mozilla/4.0" then set this list of environmental variables: (Windows 98; US) Opera 10.00 [en] and finally GoAway, which gets the specific value of 1. Frankly you're lucky this didn't result in locking out all UAs containing the string "Mozilla/4.0" (robots plus all but the latest versions of MSIE). For that matter, maybe you did lock them out, you just didn't notice :)
Remember that in Apache, a literal space very often has semantic meaning. So it needs to be either escaped or hidden inside quotation marks. Some mods let you go either way; some are more particular. In mod_setenvif, quotation marks are enough.
Incidentally, there is a useful shorthand in mod_setenvif. When matching against the user-agent, you can say BrowserMatch or BrowserMatchNoCase
With the opening anchor, this rule-- in any module-- will only work on user-agents that begin "windows 98". With lower-case w, because Regular Expressions are case sensitive unless you've particularly told them not to be.
Msg#: 4575562 posted 2:12 pm on May 21, 2013 (gmt 0)
I know this is a dumb question, considering you've already decided on a solution. But why block the bot? The bot is reading your rss feed, and aggregating your content for you, and puts links to your content in more places than it would be normally. This helps you. Why would you want to stop it?