• View Communities
    • Citrix Developer Network
      The place for unfiltered straight talk on Citrix products. Blogs, code downloads, best practices, APIs, and more can all be found here.
    • Citrix Ready Community Verified
      Does it work with Citrix? Application compatibility questions are a thing of the past with the new Citrix Community Verified site.
    • Blogs
      Learn the latest from the Citrix employees who are building application delivery infrastructure technologies.
    • Blogosphere
      The Citrix Blogosphere is a window into the thousands of conversations taking place about Citrix and Application Delivery.
  •  Sign In
NetScaler Developer Network

Create a Respondwith action to deny access to the requested URL

An overview of the Responder feature's Respondwith action and creation of a respondwith action to send an error message back to the client IP address denying access to the requested URL

Summary

All responder tasks are configured on the system using responder actions. These actions are then associated with responder policies that are activated based on incoming traffic and the configured policy rules. When a responder policy is activated, the corresponding responder action is carried out.
A respondwith action is used to send an HTTP string as a response to a client.
The following table describes the parameters you must configure to create a respondwith action

Parameter
Description
Name    The name of the action. This is a mandatory parameter and cannot be changed. The action name must not exceed 31 characters.
Type    The type of responder action being configured. This parameter determines the behaviour of the responder action. You can choose to respond to the client or redirect the client elsewhere.
Select the 'Respondwith' responder action type to send the configured target string to the client.
Target    This parameter contains the HTTP string to be sent as a response to the client.

The following procedure describes steps to create a Respondwith action that sends an HTTP/1.1 200OK response to the client, along with an error message indicating that the client IP is not authorized to access the requested URL.

To create a respondwith action

  1. In the left pane, expand Protection Features, then expand Responder and click Actions. The Responder Actions page appears in the right pane.
  2. Click Add. The Create Responder Action dialog box appears.
  3.  
  4. In the Name text box, type the name of the responder action, for example Action-Responder-1.
  5. Under Type, select Respond with.
  6. In the Target text area, type "HTTP/1.1 200 OK\r\n\r\n" + "Client: " + CLIENT.IP.SRC + " is not authorized to access URL:" + HTTP.REQ.URL.HTTP_URL_SAFE
  7. Click Create, then click Close. The responder action you created appears in the Responder Actions page.

Tags

appexpert appexpert Delete
responder responder Delete
redirect redirect Delete
code code Delete
pattern pattern Delete
how to how to Delete
protection features protection features Delete
Enter tags to add to this page:
Please wait 
Looking for a tag? Just start typing.
Related Links