Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Googlebot [OR]
RewriteCond %{HTTP_USER_AGENT} AltaVista [OR]
RewriteCond %{HTTP_USER_AGENT} Lycos [OR]
RewriteCond %{HTTP_USER_AGENT} Slurp [OR]
RewriteCond %{HTTP_USER_AGENT} Scooter [OR]
RewriteCond %{HTTP_USER_AGENT} YahooSeeker [OR]
RewriteCond %{HTTP_USER_AGENT} msnbot [OR]
.
.
.
.
RewriteRule ^.*$ [google.com...] [R,L]
Now, problem is that when I use my browser to reach my site, I also get redirected to Google.
why?
Also, I'd recommend the following rule change to accomplish your stated goal:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Googlebot [OR]
...
RewriteCond %{HTTP_USER_AGENT} msnbot [OR]
RewriteCond %{HTTP_USER_AGENT} zzbot
[b]RewriteRule .* - [F][/b]
Jim
I want to block search engines from ever finding my site
- password protect the site
- use the Google removal tool to remove the site
Stuff does happen, so to completely protect it you need to password protect it.