All modulesMagento 2 module

Filter Guard - bot protection for category filters

Free module. Bots that open every combination of category filters no longer force a full page render and fill your page cache; shoppers notice nothing.

Free · free licence, installation optional

www.degriz.eu
Demo: two filters in a category and the admin settings
About the module

What it does.

"The server is suddenly slow and the log is full of category requests with every possible combination of filters." Each combination is a different URL, so the page cache does not know it and the server renders the whole page.

What it looks like in practice

Bots open filter combinations through residential proxy networks, one request per IP address, so rate limiting and robots.txt do not help. On one of our stores a single night brought 36,000 such requests from 16,000 IP addresses. Filter Guard does not serve them the full page: a visitor without the browser cookie gets a tiny page that sets the cookie and reloads by itself. The shopper does not notice it, the bot is left without a render.

What changes

  • Browser check. A request with two or more selected filters and no cookie gets a 1 KB page. The page render and the product query never start.
  • The cache stays clean. Multi-filter pages are not stored in the page cache.
  • Search engines. Filtered pages get noindex, follow and filter links get nofollow.
  • A counter. The settings page shows how many requests were stopped and how many a browser let through, for the last 14 days.
  • Shoppers. The cookie is set on the very first page, so choosing filters has no delay. A shared link with two filters opens after a short automatic reload.

Who it is for

For any Magento 2 store with layered navigation where bots load the server: on Hyvä or Luma, with or without Cloudflare. On Cloudflare a Managed Challenge rule is still the stronger first line; Filter Guard also protects a store without it.

How you set it up

The defaults usually fit. The settings are under Stores › Configuration › Magelan › Filter Guard: from how many selected filters the browser is checked, from how many the page is kept out of the page cache, and noindex and nofollow.

Good to know

  • The module is free. You receive the Composer access details after a free order, and you can order the installation from us.
  • The mgfg cookie is a strictly necessary security cookie with no personal data. If a consent tool deletes unlisted cookies, add it to the necessary group.
  • Without JavaScript and cookies the visitor gets a link to the listing without filters.

Want it in your store?

Install it yourself or choose installation and configuration when you order. Building a new store? Add it to your project in the Konfigurator.

Screens

Take a look at every step.

www.degriz.eu
The shopper picks two filters, the page opens without delay
www.degriz.eu
The 1 KB page a bot without the cookie receives
www.degriz.eu
Module settings in the admin
www.degriz.eu
Counter of stopped requests for the last 14 days
Installation

How to install it.

We install the module from our repository with Composer. We send you the user name and access key for the repository after the (free) order. If you prefer, we install it for you.

In the root of the Magento 2 store run the commands (replace UPORABNIK and DOSTOPNI_KLJUC with the user name and access key you received):

composer config repositories.degriz composer https://www.degriz.net/konfigurator/composer/packages/composer config --auth http-basic.www.degriz.net UPORABNIK DOSTOPNI_KLJUCcomposer require degriznet/m2_filterguardphp bin/magento module:enable Magelan_FilterGuardphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento cache:flush

Setup

  1. Under Stores › Configuration › Magelan › Filter Guard check that the module is enabled. By default the browser is checked from two selected filters.
  2. Open a category and choose two filters: the page opens without delay.
  3. If a consent tool deletes unknown cookies, add mgfg to the necessary cookies.
  4. After a few hours check the counter of stopped requests in the settings.

Where do I get the user name and the access key?

After the payment we e-mail you a link to create the access key. Keep the key safe: for security it is shown only once and we do not keep it in readable form. The user name (your project code) and all the commands, ready to copy, are in your account under My account > Module licences.

Lost the key? Create a new one in your account under Module licences; the old one stops working.

Technical details

Compatibility.

Just the facts.

Code
degriz_filterguard
Platform
Magento 2
Licence
One-off
Change log

Version 1.0.0 · 30 Nov 2026

  • Bots that open filter combinations no longer get the full page, while shoppers notice nothing.
  • Multi-filter combinations no longer fill the page cache.
  • Filtered pages get noindex and filter links get nofollow.
  • The settings page shows stopped requests for the last 14 days.
After purchase

You are not left alone.

We develop and maintain the module ourselves, so you write to the people who know it line by line.

Installation

Installation and configuration are optional: choose them when you order and the price is added to the order (+ VAT). If more time is needed, we bill the rest separately.

Support

A bug that repeats on a clean Magento with the Luma theme we fix free of charge. Settings, customisations and other themes by time spent.

Updates

The licence includes 12 months of free updates for the Magento versions on the supported list.

We agree on a date after reviewing the request. User guides in the guide centre

Filter Guard - bot protection for category filters

Free

Free licence for one store, no subscription. Installation and configuration are optional.

Order it like any other module (no payment needed) and you get the licence and access to our composer repository straight away. 12 months of free updates are included.

Write to us

Install it yourself by following the guide, or choose installation and configuration above. If more time is needed, we bill the rest separately. We agree on a date after reviewing the request.

Anže Voh, Degriz

Questions about this module?

Write to us and we will answer personally.

[email protected] · +386 40 807 231

Filter Guard - bot protection for category filtersFreeAdd to cart

Online store configurator

Redesigning your store or building a new one?

Put your own quote together in the configurator and see the price straight away. A few minutes, no obligation, no meeting needed.

  • Price straight away
  • No obligation
  • Straight to the developer
Open the configurator

Free and with no obligation

We use cookies for the proper functioning of the site, visit analytics and showing ads tailored to your interests. Read more in our privacy policy. By clicking "Accept all" you agree to the use of all cookies.