what is robot.txt file in seo - Techno Pratap

what is robot.txt file in seo


A robots.txt file is a plain text file that tells your web crawler what page to crawl and which to don't on your site. This is a very small text file located in the root directory of your server. I discussed earlier how to embed pdf in Blogger

what is robot.txt file in seo

Almost all search engine bots comply with this robots.txt file. With this file, you can block any page of your site from the bot or block a particular of file on your site such as GIF PNG.

also read:

How to Start a Blog.

blogger vs WordPress.

create a privacy policy page in blogger.

write SEO-friendly blog posts for bloggers.

In practice, it is suggested that the robots.txt file dictates which part of your website can be crowded and which part cannot be crowded.

An example of a robots.txt file is shown below.

robots.txt example

Now I will tell you about all the syntax of robots.txt here. You can learn about all the syntax used in robots.txt

robots.txt syntax

Now I will tell you about all the syntax of robots.txt here. You can learn about all the syntax used in robots.txt


Here the robots.txt syntax can be found as a language that instructs the robot or web crawler to know what to scan and what not to do on your site.

User-agent  

 : The web crawler you order to crawl your site. The following is a list of most user agents.

Disallow: 

"Disallow" is used to prevent the user agent from crowding a specific URL or directory.

Allow: 

 {Only applicable for Googlebot} The syntax can inform a Googlebot that accesses a page or subfolder, although its parent page or subfolder is Disallowed.

Crawl-delay: 

How many seconds a crawler should wait before crawling another link. Googlebot does not acknowledge this syntax.

Sitemap:

 This is no command. Here you can paste your Sitemap URL.