The Application Security Manager™ has a default blocking response page that
it returns to the client when the client request, or the web server response, is blocked by the
security policy. The system also has a login response page for login violations. You can change
the way the system responds to blocked logins or blocked requests.
Note: The system issues response pages only when the enforcement mode is set to
Blocking.
A security policy can respond to blocked requests in these ways:
- Default response
- Custom response
- Redirect URL
- SOAP fault
- Erase Cookies
The system uses default pages in response to a blocked request or blocked login. If the default
pages are acceptable, you do not need to change them and they work automatically. However, if you
want to customize the response, or include XML or AJAX formatting in the blocking responses, you
need to enable the blocking behavior first. You enable XML blocking on the XML profile, AJAX
blocking on the AJAX response page, and Cookie Hijacking on the Session Tracking screen.
All default response pages contain a variable, <%TS.request.ID()%>, that
the system replaces with a support ID number when it issues the page. Customers can use the
support ID to identify the request when making inquiries.
Configuring the blocking response for AJAX applications
Before you can complete this task, you need to have already created a security
policy for your web application. The application needs to have been developed using
ASP.NET, jQuery, Prototype®, or MooTools to use AJAX blocking
behavior.
When the enforcement mode of the security policy is set to blocking and a request
triggers a violation (that is set to block), the system displays the AJAX blocking
response according to the action set that you define. If a login violation occurs when
requesting the login URL, the system sends a login response page, or redirects the user.
-
On the Main tab, click .
-
In the Current edited security policy list near the top of the
screen, verify that the security policy shown is the one you want to work on.
-
Click the AJAX Response Page tab.
-
Select the Enable AJAX blocking behavior (JavaScript
injection)? check box.
The system displays the default blocking response and login response
actions for AJAX.
-
For the Default Response Page action setting, select the
type of response you want the application user to receive when they are blocked
from the application:
-
Custom Response lets you specify HTML text or
upload a file to use as a replacement for the frame or browser page that
generated the AJAX request. Include the text, then click
Show to preview the response.
-
Popup message displays text in a popup window
(default text is included).
-
Redirect URL redirects the user to the URL you
specify. You can also include the support ID. For example:
http://www.example.com/blocking_page.php?support_id=<%TS.request.ID()%>.
-
For the Login Page Response action, select the type of
response (types are the same as for default response page in Step 5).
-
Click Save.
-
To put the security policy changes into effect immediately, click Apply
Policy.