Skip to content

Instantly share code, notes, and snippets.

@akroii
Last active March 18, 2022 15:52
Show Gist options
  • Select an option

  • Save akroii/bb02f04940446dbbdb0af9ab6c778690 to your computer and use it in GitHub Desktop.

Select an option

Save akroii/bb02f04940446dbbdb0af9ab6c778690 to your computer and use it in GitHub Desktop.
exclude seo bots
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} AltaVista [OR]
RewriteCond %{HTTP_USER_AGENT} Googlebot [OR]
RewriteCond %{HTTP_USER_AGENT} msnbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^bingbot/.* [OR,NC]
RewriteCond %{HTTP_USER_AGENT} Slurp
RewriteRule ^.*$ "https\:\/\/sdfsdf.sdfsdfdsf\.rocks" [R=301,L]
@akroii
Copy link
Author

akroii commented Mar 18, 2022

RewriteCond %{HTTP_REFERER} ^https?://www.google.com [NC]
RewriteRule ^ http://www.google.com/ [L,R]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment