+4 votes
in Web & Google by (40.5k points)
I want to block Google and Bing from accessing my website. How can I do it?

1 Answer

+3 votes
by (77.2k points)
selected by
 
Best answer

You can block Bing and Google from crawling your whole website by adding the following lines to your robots.txt file. You can create this file in the public_html folder.

User-agent: Googlebot
Disallow: /

User-agent: Bingbot
Disallow: /


...