Use of Robot.txt for bing?

dipakgseo

Junior Member
Joined
May 1, 2013
Messages
122
Reaction score
43
If I want index my page in google for specifically avoid bing, how to do that? Don't want to index in bing? tell me..
 
I'm not sure why you'd want to block Bing from crawling your site, but you should be able to do this by editing your .htaccess with the following line in your root directory:


RewriteEngine On RewriteCond %{HTTP_USER_AGENT} (bingbot) [NC] RewriteRule .* - [R=403,L]
 
If you want to prevent specific page, update your robots.txt file as follow"

User-agent: Bingbot
Disallow: page url

If you want to prevent entire website, update your robots.txt file as follow"

User-agent: Bingbot
Disallow: website url

Hope this will help.
 
Back
Top