Free tools / Robots.txt Generator
Pick a starting point, add folders you want crawlers to skip and your sitemap address, and copy a robots.txt file that you can upload to the root of your site.
A robots.txt file tells crawlers which parts of your site to skip. It is useful for admin areas, carts and internal search pages. It does not hide pages from search results, so use noindex for that, and never block pages you want to rank.
At the root of your domain, for example example.com/robots.txt.
No. It stops crawling, but a blocked URL can still appear if other sites link to it. Use noindex to keep a page out.
Yes. A Sitemap line helps crawlers find all your pages.
Yes. "Disallow: /" blocks everything, so check the file before you upload it.