Forum Discussion
hooleylist
May 08, 2012Cirrostratus
The ends_with operator does an exact match (without support for wildcards). If you want to check with a request with no query string, you can use [HTTP::query] eq "". Or if you want to check if the requested path has a file type you can use [URI::basename [HTTP::uri]] contains ".".
I'd also check if the [HTTP::uri] starts_with "/server-status" to prevent someone from bypassing your blacklist by adding a query string to the URI.
Aaron