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

1 Answer

+2 votes
by (27.1k points)

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: /


...