Page is a not externally linkable
larryhatch - 9:05 pm on Jun 23, 2006 (gmt 0)
Wilderness: you wrote: Do you put this line directly into .htaccess, or someplace else? Are you sure I don't have to do something special (escape etc.) with the space? If it goes into .htaccess, where exactly do I put it? RewriteEngine On # By Referer: # By user agent: - - - - I just want a single foolproof line I can insert somewhere in the above. -Larry
Thanks guys!
" I use a single line for these:
SetEnvIf User-Agent "compatible ;" keep_out ..
I do NOT want to disallow compatible; with the semicolon properly placed of course.
My present .htaccess looks like this:
RewriteCond %{HTTP_REFERER} forumxx\.#*$!xx\.xxx [NC,OR]
RewriteCond %{HTTP_REFERER} forumyy\.fok\.nl [NC,OR]
RewriteCond %{HTTP_USER_AGENT} larbin [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Java/1 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Microsoft\ URL\ Control [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Missigua [NC]
RewriteRule .* - [F]