How to Prevent Filtered Pages from Being Crawled in Improved Layered Navigation?

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:

  1. <a href="...">

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:

  1. <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.
  1. Go to the module settings in Amasty > Improved Layered Navigation: SEO > Configuration;

  2. Find the Filter Key setting and set any custom value for the filter key, for instance shopby



  3. Go to the design configuration in Content > Design > Configuration > Global



  4. Open the robots.txt custom instructions section in Search Engine Robots;

  5. Insert the record in the Edit custom instruction of robots.txt File using the filter key from step 3:
    Disallow: */shopby/*




  6. Save the configuration.