What is robots.txt?
robots.txt is a plain-text file at the root of your domain that tells search-engine crawlers which paths they may or may not request. It's the first file most bots fetch. Used correctly it protects crawl budget; used carelessly it can accidentally hide your whole site from Google.
How to use it
- Choose a default rule, then add specific disallow/allow paths.
- Add your sitemap URL so crawlers discover your pages faster.
- Save the output as
robots.txtand upload it to your domain root.