Cisco Cisco Web Security Appliance S170 사용자 가이드

다운로드
페이지 464
 
17-13
AsyncOS 9.0 for Cisco Web Security Appliances User Guide
 
Chapter 17      Notify End-Users of Proxy Actions
  Editing Notification Page HTML Files Directly
Using Variables in Notification HTML Files 
When editing notification HTML files, you can include conditional variables to create if-then statements 
to take different actions depending on the current state.
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 
conditional 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.
Variables for Customizing Notification HTML Files 
You can use variables in the notification HTML files to display specific information to the user. You can 
also turn each variable into a conditional variable to create if-then statements. For more information, see 
.
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
Variable
Description
Always Evaluates to 
TRUE if Used as 
Conditional Variable
%a
Authentication realm for FTP
No
%A
ARP address
Yes
%b
User-agent name
No
%B
Blocking reason, such as BLOCK-SRC or BLOCK-TYPE
No