Understanding robots.txt user agents and crawl rules
robots.txt file is a plain text file placed in your website root directory to instruct search engine scrapers (like Googlebot, Bingbot, Yandex) on how to index and crawl your site pages. It uses directives like User-agent, Disallow, Allow, and Sitemap:# Standard robots.txt syntax: User-agent: * Disallow: /admin/ Allow: /admin/login Sitemap: https://example.com/sitemap.xmlIf you are converting file formats to structured markup, you might also like our CSV to JSON Converter.
- User-agent defines which specific spider bot the following crawl rules apply to
- Disallow instructs crawler spiders to ignore matching path directories
- Allow overrides disallow patterns, letting search crawlers index sub-directories
- Sitemap defines the absolute XML sitemap URL address so search bots find pages easily