Title: Blocking query parameters
Last modified: August 31, 2016

---

# Blocking query parameters

 *  Resolved [woo-do](https://wordpress.org/support/users/woo-do/)
 * (@woo-do)
 * [10 years ago](https://wordpress.org/support/topic/blocking-query-parameters/)
 * Hi Sybre,
 * we’re using Woocommerce on our site with some filter options for the shop. Would
   you recommend to blocking the query parameters within the robots.txt?
 * Something like:
    Disallow: /*?*
 * If yes, how can I add this to the robots.txt?
 * Many thanks 🙂
    Maike
 * [https://wordpress.org/plugins/autodescription/](https://wordpress.org/plugins/autodescription/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [10 years ago](https://wordpress.org/support/topic/blocking-query-parameters/#post-7397392)
 * Hi Maike,
 * According to [this research](https://www.hallaminternet.com/avoiding-the-seo-pitfalls-of-url-parameters/),
   it is advised to block those in some scenarios.
 * > Using a faceted navigation can prove extremely useful for consumers looking
   > for specific products within your website, but you need to ensure that any 
   > URLs generated as a result of filters being applied don’t hold back the performance
   > of your original category pages in organic search results.
 * The SEO Framework has a built in filter to add that specific line you mentioned:).
 * This is the filter:
 *     ```
       add_filter( 'the_seo_framework_robots_disallow_queries', '__return_true' );
       ```
   
 * I hope this helps! 🙂
 *  Thread Starter [woo-do](https://wordpress.org/support/users/woo-do/)
 * (@woo-do)
 * [10 years ago](https://wordpress.org/support/topic/blocking-query-parameters/#post-7397572)
 * Hi Sybre,
 * thanks for your detailed answer. A very interesting article. I
 * t seems that Woocommerce (? or the SEO Framework) automatically sets a canonical
   URL. So I think the filter is actually not needed.
 * Have a nice evening!
    Maike
 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [10 years ago](https://wordpress.org/support/topic/blocking-query-parameters/#post-7397578)
 * Hi Maike,
 * That’s correct, it’s The SEO Framework. And it’s done for the reasons given in
   that article. This slipped my mind :).
 * It only adds them back for translation URLs, like with WPML and qTranslate X (
   and Polylang is planned).
 * Thanks! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Blocking query parameters’ is closed to new replies.

 * ![](https://ps.w.org/autodescription/assets/icon.svg?rev=3000376)
 * [The SEO Framework – Fast, Automated, Effortless.](https://wordpress.org/plugins/autodescription/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autodescription/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autodescription/)
 * [Active Topics](https://wordpress.org/support/plugin/autodescription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autodescription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autodescription/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/blocking-query-parameters/#post-7397578)
 * Status: resolved