Instruction manual

Appendix A: Policy Expressions
NetScaler 9000 Series Installation and Configuration Guide - Volume 1 A-7
NSICG60_JAN05
A.1.2 Using Expressions
Expressions are categorized as:
z Simple Expressions
z Compound Expressions
z Response Side Expressions
A.1.2.1 Using Simple Expressions
Simple expressions, as the name implies, check for a single condition.
Examples of simple expressions are as follows:
add policy expression meth_trace "METHOD == TRACE"
add policy expression url_cgi "URL == /cgi-bin/*"
add policy expression exp_images "URL CONTAINS /images/"
add policy expression jsession_url "URL CONTAINS
jsessionid= -length 8"
add policy expression cookie_monster "HEADER Cookie
CONTAINS ’monster=true’"
add policy expression no_hdr_host "HEADER Host NOTEXISTS"
add policy expression rfc1918_10 "SOURCEIP == 10.0.0.0
-netmask 255.0.0.0"
add policy expression rfc1918_172_16 "SOURCEIP ==
172.16.0.0 -netmask 255.240.0.0"
EXIST,
NOTEXISTS
These operators check for the existence of particular
qualifier. For example, these operators can be applied to
HTTP headers to determine if a particular HTTP header
exists, or if the URL Query exists.
CONTENTS This operator checks if the qualifier exists and if it has
contents (i.e. if a header exists, and has a value associated
with it, no matter what the value).
Table 0-1. Operators
Operator Description