Host unlimited blogs, sites, forums for $4.95 only with this host

Bluehost : banning using user agent in .htaccess

Bluehost is among our best web hosts. Sign up with bluehost here

This is a bluehost question posted by jlo on 07 June 2006

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

Order Allow,Deny
Allow from all
Deny from env=bad_bot
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…

You can read more about bluehost in detail or sign up now with bluehost web hosting

This entry was posted in Bluehost Host Bookmark this post and come back later for the best web hosting coupons.

This web hosting blog is proudly hosted with reliable Hostgator webhosting for only one cents through this hostgator coupon. If you're new here, you may want to subscribe to this web hosting RSS feed

-->