Place it at the website root
Publish the file at /robots.txt. Rules elsewhere will not act as the website’s robots file.
Free technical SEO tool
Create crawler directives, add your sitemap and test whether a path is allowed or blocked before publishing the file.
User-agent: * Disallow: /admin Disallow: /private Disallow: /search Allow: /
Test results follow common longest-match robots rules. Search engines may interpret unsupported directives differently.
Publish the file at /robots.txt. Rules elsewhere will not act as the website’s robots file.
A disallowed URL may still appear in search if other pages link to it. Use appropriate indexing controls for removal.