ProxySG Content Policy Language Guide
62
condition=
Tests if the specified defined condition is true.
Syntax
condition=condition_label
where condition_label is the label of a custom condition as defined in a define
condition, define url.domain condition, or define url condition definition block.
Layer and Transaction Notes
Use in all layers.
The defined conditions that are referenced may have usage restrictions, as they must be evaluated
in the layer from which they are referenced.
Examples
; Deny access to client 1.2.3.4 for any http request through proxy port 8080.
define condition qa
client.address=1.2.3.4 proxy.port=8080
end condition qa
<proxy>
condition=qa client.protocol=http deny
; Restrict access to internal sites to specific groups,
; using nested conditions.
define condition restricted_sites
url.domain=internal.my_co.com
end condition restricted_sites
define condition has_full_access
group=admin,execs,managers
end condition
define condition forbidden
condition=restricted_sites condition=!has_full_acesss
end
<proxy>
authenticate(My_realm)
<proxy>
condition=forbidden deny
; Example of a define url condition.
define url condition test