Path Filter (URL Filter)
Expression is a match with the Request URL (or path)
The path specified in the path filter has to be the translated path.
The path filter can also be used as a URL filter. For the URL filter, expression should start with protocol:// (It is recommended to always use it in this format)
In the URL filter, the expression can be the same as the request URL/path. User does not have to know the translated path.
When using a URL filter other than the path filter, you can also filter on protocol and host name.
Examples:
PATTERN | DESCRIPTION | EXAMPLE MATCH REQUESTS |
wildcard: http://* | Only HTTP requests | http://hwcdn.net/a2a2a2a2/cds/index.html |
wildcard: https://* | Only HTTPs requests | https://anyhostname.com/a2a2a2a2/cds/dir/smpl.jpg |
wildcard: *://foo.com/* | HTTP/HTTPs request for foo.com HostName | http://foo.com/a2a2a2a2/cds/index.html, https://foo.com/a2a2a2a2/cds/dir/anydirORfile |
wildcard: *://*.html | Any request for HTML files | http://foo.com/a2a2a2a2/cds/index.html, https://aynthing.com/a2a2a2a2/cds/index.html |
wildcard: !://.txt | Any request except TXT files | http://foo.com/a2a2a2a2/cds/index.html, https://aynthing.com/a2a2a2a2/cds/dir/smpl.jpg |
wildcard: *://.html,://*.js | Any HTML file or JS files | http://foo.com/a2a2a2a2/cds/index.html, https://foo.com/a2a2a2a2/cds/dir/any.js |
wildcard: !://.txt,!://.jpg | Any request except TXT and JPG files | http://foo.com/a2a2a2a2/cds/index.html, https://foo.com/a2a2a2a2/cds/dir/any.csv |
wildcard: *://hwcdn.net/static/*.html | Any request for HTML file under Directory (recursive) "static" | http://hwcdn.net/static/index.html, http://hwcdn.net/static/foo.html, http://hwcdn.net/static/2/index.html,http://hwcdn.net/static/2/st/index.html |
glob: *://hwcdn.net/static/*.html |
Any request for HTML file under Directory (one level) "static" | http://hwcdn.net/static/index.html, https://hwcdn.net/static/foo.html |
regex: /https?://hwcdn.*\d/index.html/ | HTTP/HTTPs request for index.html under directory of Numbers | http://hwcdn.net/static/1/index.html, https://hwcdn.net/static/20/100/index.html |