Artica Wiki

Example 1: How to block in reverse-proxy multiple parameters a[]=

Example, any URL that contains the parameter a[]= four or more times

Back to Reverse-Proxy security section

Match any URL that contains the parameter a[]= four or more times

Deny and return a 444 return code for : 

/index.php?a[]=1&a[]=2&a[]=3&a[]=4

/search?a[]=foo&a[]=bar&a[]=baz&a[]=qux&a[]=boom

This is a classic anti-abuse / anti-DoS / anti-PHP-array-bomb rule.

Attackers often send huge numbers of array parameters like a[]= to:

use the pattern like this:

~(?:a\[\]=.*?){4,}

Save this pattern in this way