238 Citrix NetScaler Policy Configuration and Reference Guide
Look for a particular file type in an
HTTP request based on the file
extension.
http.req.url.contains(".html")
http.req.url.contains(".cgi")
http.req.url.contains(".asp")
http.req.url.contains(".exe")
http.req.url.contains(".cfm")
http.req.url.contains(".ex")
http.req.url.contains(".shtml")
http.req.url.contains(".htx")
http.req.url.contains("/cgi-bin/")
http.req.url.contains("/exec/")
http.req.url.contains("/bin/")
Look for anything that is other than
a particular file type in an HTTP
request.
http.req.url.contains(".gif").not
http.req.url.contains(".jpeg").not
Check the type of file that is being
sent in an HTTP response based on
the Content-Type header.
http.res.header("Content-Type").conta
ins("text")
http.res.header("Content-Type").conta
ins("application/msword")
http.res.header("Content-Type").conta
ins("vnd.ms-excel")
http.res.header("Content-Type").conta
ins("application/vnd.ms-powerpoint")
http.res.header("Content-Type").conta
ins("text/css")
http.res.header("Content-Type").conta
ins("text/xml")
http.res.header("Content-Type").conta
ins("image/")
Check whether this response
contains an expiration header. http.res.header("Expires").exists
Check for a Set-Cookie header in a
response http.res.header("Set-Cookie").exists
Check the agent that sent the
response. http.res.header("User-Agent").contain
s("Mozilla/4.7")
http.res.header("User-Agent").contain
s("MSIE")
Examples of Advanced Expressions
Expression Type Sample Expressions