
Originally Posted by
jlo
Here is a really newbie question. I am banning robots using .htaccess by both ip and user agent. For user agents I use a block of code like this...
SetEnvIfNoCase User-Agent "^Mo College 1.9" bad_bot
<Limit GET POST>
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</Limit>
When I use cp panel/file manager to edit the .htaccess file and try to ban a longer user agent, the line splits into two lines and then is not recognized by the compiler. How can I ban longer user agent like this...
SetEnvIfNoCase User-Agent "^Mozilla/4.0 (compatible ; MSIE 6.0; Windows NT 5.1)" bad_bot
Is there a line continuation character or something?
I hope someone can help.