Page is a not externally linkable
- Google
-- Google Desktop Tools and Google Labs Projects
---- How to identify and block users who run Google Toolbar?


jdMorgan - 2:29 am on Sep 26, 2009 (gmt 0)


If installed in .htaccess, that code will cause an 'infinite' loop, repeatedly rewriting nogtb.php to itself until the server gives up. Fix for use in .htaccess:

RewriteEngine on
#
RewriteCond %{HTTP_USER_AGENT} GoogleToolbar [NC]
RewriteCond %{REQUEST_URI} !^/nogtb\.php$
RewriteRule ^ /nogtb.php [L]

or in more-compact form

RewriteEngine on
#
RewriteCond %{HTTP_USER_AGENT} GoogleToolbar [NC]
RewriteRule !^nogtb\.php$ /nogtb.php [L]

I disagree with telling your visitors what they can and cannot use on their own computers -- It seems a bit presumptuous if they're a potential customer. But if you're going to do it, at least don't put your server through an unnecessary workout while doing so.

Jim


Thread source:: http://www.webmasterworld.com/google_toolbar_tools/3995589.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com