Matching a file suffix¶
A WAF rule with the Path condition allows you to match requests based on the file extension, for example for media files.
Condition: Match the .mp4 suffix
For example, proceed as follows to match file extensions:
- ► Select Request as the request method.
- ► Add the Path condition.
- ► Select the SUFFIX operator from the drop-down list.
- ► Enter
.mp4as the value. - ► Add the Allow action.
