Robots.txt
Limit crawler access to duplicate filter paths, but do not use robots.txt as permission for the admin area.
Limit crawler access to duplicate filter paths, but do not use robots.txt as permission for the admin area.
User-agent: *Disallow: /cartDisallow: /admin/products200 OKDisallow is not access control; private pages still need authentication and authorization.
The file location sets its scope: robots.txt normally lives at the site root, such as https://example.com/robots.txt. Rules apply to the matching protocol, host, and port.
A crawler reads the rules before requesting: A compliant crawler uses User-agent, Allow, and Disallow to decide whether to request a path. A normal browser does not lose access because of this file.
Create robots.txt at the site root to limit crawling of duplicate filter paths while keeping normal product pages crawlable. Check the file location, rule matches, and that a normal browser can still access the path. Protect admin pages and customer data with authentication and authorization, not Disallow.