Every request sent from a client to the proxy server has a set of unique parameters. You can use these parameters in rules, after specifying them as variables:
Variable name
|
Variable type
|
Description
|
request_url
|
string
|
Request URL
|
request_username
|
string
|
Name under which the user authorized on the proxy server. The name is extracted from the X-Client-Username header. If the header is not present, the variable value is treated as an empty line.
|
request_ip
|
IP-address with network mask (CIDR)
|
IP address of the user who sent a request to the proxy server. The address is extracted from the X-Client-IP header. If the header is not present, the variable value is treated as undefined.
|
system_time
|
time
|
Current system time (hours and minutes).
|
Please note that use of the request_ip and request_username variables requires the Squid HTTP proxy server to be configured accordingly.
|