'How to use AWS WAF to block certain URLs
I am trying to use AWS WAF to block requests with certain URL patterns. I am using the string matching filter, but it is not blocking the requests. I must be doing it incorrectly.
Here is what I am trying to block: https://xxx.domain.com/
A good url would be: https://xxx.domain.com/something/something
The URL with nothing after the .com slash is never used in this example and is only hit by malicious traffic.
How do I use WAF to block these requests?
Solution 1:[1]
- You can configure rules based on Referrer or Origin
 - Use regex based rule example *.domain.com
 - Take action to Block
 
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source | 
|---|---|
| Solution 1 | Purna | 
