What Is robots.txt?
A text file that tells crawlers which parts of your site they can access.
Essential Directives
- User-agent: Which crawler
- Disallow: Don't access
- Allow: Explicitly permit
- Sitemap: XML sitemap location
Common Mistakes
- Accidentally blocking entire site
- Blocking CSS/JS files
- Using robots.txt to hide sensitive pages
Comments (0)
Leave a Comment