Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Allow Only Googlebot Htaccess Code, if your server have huge server load
Web Design Seo
post Feb 8 2013, 11:44 AM
Post #1


Web Design Seo
****

Group: Root Admin
Posts: 4,160
Joined: 29-April 09
From: Sofia
Member No.: 1



If you want to allow only google bot on your website, place this code exactly after "RewriteEngine On" in your htaccess file. This code can be used when server have huge server load and you need to limit load.

Код
RewriteCond %{HTTP_USER_AGENT} ^(.*)msnbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)MJ12bot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)SolomonoBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Yandex [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)bingbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Baiduspider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Yeti [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Mail.Ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)exabot [NC]
RewriteRule .* - [F]


Make this only you know what you do it!
In this way, you will allow only google bots to index your website. Website will be not indexed from bots of Baidu, Bing, Yandex and others big search engines.

If you need to limit load, will be good to use also Block Bad Bots htaccess, Block Proxy Servers Code For .htaccess and Cache htaccess Code To Speed Up Website.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Pinned: Htaccess Code To Speed Up Joomla
example code for Htaccess for Joomla, Wordpress and other CMS
7 Web Design Seo 21,892 17th November 2018 - 11:47 AM
Last post by: Web Design Seo
No New Posts Only Getting One Email Per Import
Only getting one email per import and Gmail import just times out
1 dazza98 2,549 14th January 2013 - 07:15 AM
Last post by: Web Design Seo
No New Posts Htaccess Code To Switch To Other Php Version
Htaccess Code To Switch To php 5.6
0 Web Design Seo 7,265 13th June 2012 - 08:21 AM
Last post by: Web Design Seo
No New Posts Allowed Tags - How About Css?
these tags will not be stripped from the article's full text.
1 NVC Academy 5,516 8th March 2012 - 02:14 PM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 14th October 2019 - 06:24 AM
Clicky Web Analytics