79245003

Date: 2024-12-02 17:23:07
Score: 1
Natty:
Report link

Ok, searching for regex and "limiting string length" helped to find a regex pattern for checking if the length is in a set range.

And checking the length of the key only requires to split key and value, separated by a =.

These .htaccess lines work = a 403 is returned if ...

RewriteCond %{QUERY_STRING} ^(\w{1,5})=(.*)$ [NC]
RewriteRule .* - [F,L]
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: nitmws