Hi,
Use does not match regex match operation
Use the below regex:
^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$
This will effectively block all request where the parameter IP is not a valid IP address.
You can try out the regex
here.
Note: this is for any valid IP, including reserved IP addresses like 127.0.0.1, 0.0.0.54, 169.0.0.1 etc.
Regards,
------------------------------
Sarvesh Lad
Tech Lead @ On-Prem Managed Services (WAF, DAM, DRA & Sonar)
------------------------------
Original Message:
Sent: 12-07-2022 10:25
From: Jorge Luis Santamaria Silupu
Subject: Block invalid IP
I want to block requests with invalid IPs.
Is there a way?
I have created rules to block invalid IPs but I want to block large requests.
#On-PremisesWAF(formerlySecuresphere)