Cisco Cisco Web Security Appliance S160 Guia Do Utilizador

Página de 430
 
16-8
Cisco AsyncOS 8.0.6 for Web User Guide
 
Chapter 16      Notify End-Users of Proxy Actions
  Off-Box End-User Notification Pages
The table describes the different conditional variable formats. 
For example, the following text is some HTML code that uses %R as a conditional variable to check if 
re-authentication is offered, and uses %r as a regular variable to provide the re-authentication URL. 
Any variable included in 
variable. However, the best variables to use in conditional statements are the ones that relate to the client 
request
 instead of the server response, and the variables that may or may not evaluate to TRUE instead 
of the variables that always evaluate to TRUE.
Off-Box End-User Notification Pages
You can define notification pages outside the Web Security appliance by redirecting all notification 
pages to a custom URL you specify. By default, AsyncOS redirects all blocked websites to the URL 
regardless of the reason why it blocked the original page. However, AsyncOS also passes parameters as 
a query string appended to the redirect URL so you can ensure that the user sees a unique page explaining 
the reason for the block. For more information on the included parameters, see 
.
When you want the user to view a different page for each reason for a blocked website, construct a CGI 
script on the web server that can parse the query string in the redirect URL. Then the server can perform 
a second redirect to an appropriate page.
End-User Notification Page Parameters
AsyncOS passes the parameters to the web server as standard URL Parameters in the HTTP GET request. 
It uses the following format:
<notification_page_url>?param1=value1&param2=value2
 
Conditional Variable Format
Description
%?V 
This conditional variable evaluates to TRUE if the output of variable 
%V is not empty.
%!V
Represents the following condition:
else
 
Use this with the %?V conditional variable.
%#V
Represents the following condition:
endif
 
Use this with the %?V conditional variable.
%?R
<div align="left">
<form name="ReauthInput" action="%r" method="GET">
<input name="Reauth" type="button" OnClick="document.location='%r'"
id="Reauth" value="Login as different user...">
</form>
</div>
%#R