Matching types: Explicit vs Wildcard
In F5 WAF for NGINX (formerly known as NGINX App Protect WAF), matching can be defined in two ways:
Explicit matching refers to direct matches to specific names or paths in your application. For example:
- URLs:
/index.html
,/api/data
- Cookies:
sessionId
,userPrefs
- Parameters:
username
,email
Use explicit matching when you need to protect specific, known entities.
Wildcard matching uses patterns to match multiple similar names or paths. For example:
- URLs:
/test*
matches/test
,/test123
,/testing
- Cookies:
test*
matchestest
,test123
,testing
- Parameters:
user*
matchesusername
,user_id
,userEmail
Wildcard matching is useful when:
- You need to protect multiple similar entities
- You want to apply the same security controls to a group
- The exact names or paths may vary or are dynamically generated
Both explicit and wildcard matching allow you to configure additional properties, such as enforcement type, attack signatures, and more, depending on the entity being protected.