The robots.txt file is a file you can add to your document root to help minimize the impact of "bots" crawling your site. While it is not a guarantee or foolproof method to manage how all bots crawl your site, it can help mitigate the impact of frequent crawls by certain search bots.

Limitations of robots.txt

An important point to keep in mind when using robots.txt is that it should be considered a set of suggestions, not a set of rules that all bots must follow. While most reputable bots will follow the instructions of a robots.txt file, scraper bots and malware bots (along with other bad bots) will most likely ignore your robots.txt file. So, if you have sensitive information that you wish to in your account, you will want to utilize password protection, not robots.txt to protect that data.

Creating a robots.txt File

You can create your robots.txt file either through the File Manager in cPanel or any text editor program on your local computer such as Notepad for Windows, TextEdit on Mac or vi or emacs on Linux. When saving the file, make sure it is saved with exactly the filename and extension robots.txt

What goes into a robots.txt File

You can specify Disallow rules for a specific User-agent (such as googlebot) or specify all bots by using the wild card "*"  (without the quotes).

Here are a few examples:

This disallows all bots for the entire site:

User-agent: *
Disallow: /

While the following directive is considered nonstandard, several major crawlers support this as a directive to limit how often (in seconds) a bot should crawl your site:

User-agent: *
Crawl-delay: 10

For more information regarding User-agents and Disallow statements used in robots.txt, please see:

robots.txt documentation from robotstxt.org

More information can also be found about robots.txt in Goolge Webmaster Tools:

Google Webmaster Tools and robots.txt

Did you find this article helpful?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Christi Nickerson, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. "WordPress Login Temporarily Disabled"?
  2. Google Adwords Credit Link Doesn't Work in AMP
  3. my email is being rejected

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.