robots.txt FileTo exclude all Robots From The Entire Site

by | Feb 12, 2015

If you don’t want to let your sites get indexed on search engines, you can disable access via robots.txt file.

Create a file named robots.txt and upload it to your root directory of domain.

User-agent: *
Disallow: /

To exclude all robots from certain directories robots.txt:
User-agent: *
Disallow: /cgi-bin/
Disallow: /tmp/
Disallow: /junk/

About Mohammad Shoeb
Hi, I'm Shoeb. I've been fortunate to work with WordPress for over a decade and I'm continuously learning from this journey. Alongside some wonderful people, I help run Elicus in Jaipur. Our aim is to make WordPress tools that are simple and helpful.