Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Query string optimizer

Security covered Under active development

This module improves website security and caching by sorting and removing duplicate query parameters from URLs. It ensures that identical URLs with different parameter arrangements are treated as the same, which helps bots and malicious scripts by making it harder to exploit them.

Makes your website more resilient against bots and malicious scripts by sorting and making query parameters unique.
This module will sort your query strings and make them also unique.

Example

Original:
/nl/overview-news?category[]=16&category[]=17&category[]=17
Optimized:
/nl/overview-news?category[]=16&category[]=17

Original:
/nl/overview-news?category[]=16&category[]=17&category[]=17&test&abc=123
Optimized:
/nl/overview-news?abc=123&category[]=16&category[]=17&test=

This will make sure that caching will be optimized because all of these are 301 redirects which can be cached by every layer (for example Varnish)

Why do we need this?

Considering the rise of bots and also AI bots etc filters and searches get exploited/misused every often. Without rate limiting or blocking bots (if it even works) this will help out a lot. (Tested on high visibility websites)

For example we used to have urls in our logs like:
/nl/overview-news?category[]=16&category[]=17&category[]=17&category[]=17&category[]=17&category[]=17&category[]=17

This module will make sure that no more than one category 17 can be used.

/nl/overview-news?page=10category[]=16&category[]=17&category[]=17&category[]=17&category[]=17&category[]=17&category[]=17&

This module makes sure that "page" parameter is always in the same position. This allows for url caching on for example Varnish.

Post-Installation

Should be active already.

Ask your assistant about Query string optimizer

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.x-dev Dev 10–11 Jul 24, 2025