How to Prevent Filtered Pages from Being Crawled in Improved Layered Navigation?
The Improved Layered Navigation module generates filter links as standard HTML links, for example:
As a result, filtered pages may appear in Google Search Console, consume crawl budget, and create duplicate content issues. This can happen even when filtered pages contain a meta robots tag such as the following:
- <meta name="robots" content="noindex, nofollow">
Google treats nofollow as a hint rather than a strict directive, so it may still decide to crawl certain links.
To prevent search engines from crawling filtered pages, configure a filter URL key and block it in the robots.txt file.
- Go to the module settings in Amasty > Improved Layered Navigation: SEO > Configuration;
- Find the Filter Key setting and set any custom value for the filter key, for instance shopby

- Go to the design configuration in Content > Design > Configuration > Global

- Open the robots.txt custom instructions section in Search Engine Robots;
- Insert the record in the Edit custom instruction of robots.txt File using the filter key from step 3:
Disallow: */shopby/*

- Save the configuration.