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

다운로드
페이지 734
 
17-9
Cisco IronPort AsyncOS 7.5.7 for Web User Guide
 
Chapter 17      Notifying End Users
Defining End-User Notification Pages Off-Box
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 
 can be used as a 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. For example, the %t variable (timestamp in Unix seconds plus milliseconds) 
always evaluates to TRUE, so there is little value in making an if-then statement based on it.
Defining End-User Notification Pages Off-Box
You can define notification pages outside the Web Security appliance by redirecting all notification 
pages to a custom URL you specify. You might want to do this to display a different block page for 
different reasons, or to use a third party logging tool to log the block events.
When you redirect notification pages to a URL, 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.
Rules and Guidelines
Consider the following rules and guidelines when entering the custom URL for notification pages:
  •
You can use any HTTP or HTTPS URL.
%!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.
Table 17-3
Creating Conditional Variables in End-User Notification Pages (continued)
Conditional Variable Format
Description
%?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