title: How to use AWS WAF to block certain URLs
body: <p>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.</p>
  
  <p>Here is what I am trying to block:
  <a href="https://xxx.domain.com/" rel="nofollow noreferrer">https://xxx.domain.com/</a></p>
  
  <p>A <em>good</em> url would be:
  <a href="https://xxx.domain.com/something/something" rel="nofollow noreferrer">https://xxx.domain.com/something/something</a></p>
  
  <p>The URL with nothing after the .com slash is never used in this example and is only hit by malicious traffic.</p>
  
  <p>How do I use WAF to block these requests?</p>