Back to Reverse-Proxy security section
Match any URL that contains the parameter
a[]=four or more times
/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,}
~ means regex pattern(?: ... ) is a non-capturing group, used only for grouping, not for storing a match. a\[\]=Matches the literal string:a[]= The brackets are escaped because [ and ] are special in regex..*? Match anything after a[]= until the next possible match{4,} is a Repetition rule, means 4 or more times