What is a robots.txt file and how to create it?

Image Credit- Google Images

A robots.txt file is a text file that webmasters use to tell Googlebot, Other web crawlers which pages on their website should not be crawled and indexed.

Image Credit- Google Images

The robots.txt file is placed in the root directory of your website. 

Image Credit- Google Images

And it can contain directives for multiple user-agents (such as Googlebot, Bingbot, etc.).

Image Credit- Google Images

The most common use for a robots.txt file is to tell web crawlers which pages on your website are off-limits. 

Image Credit- Google Images

For example, you might use a robots.txt file to tell Googlebot not to crawl and index your site's admin area or private user profiles.

Image Credit- Google Images

How do I create a robots.txt file?

Image Credit- Google Images

Creating a robots.txt file is a simple process that only requires a text editor and a basic understanding of how to use the robots.txt format. 

Image Credit- Google Images

Image Credit- Google Images

What is Googlebot and XML sitemap