• 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

Configuring the Responder feature with a Redirect Action

Configuring the Responder feature with a redirect option and use that to redirect a client from a particular subnet to a specific URL.

Summary

The Redirect action of the responder is used to redirect the client if a request meets certain conditions, before the request is sent to the back-end server.

The example in this section uses the responder to block access to the back-end server for clients originating from IP address subnet 222.222.X.X. It then redirects the client to the URL http://redirectURL. Notice that, except for choosing a Redirect action, the steps in the folloowing procedure are the same as for configuring a Respondwith action.

Configuring Redirect Actions

The following table describes the parameters you must configure to create a redirect 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 Redirect action type to generate an HTTP redirect to the URL configured in the target string.
Target  
This parameter contains the URL to the location the client should redirected to.

The procedure below describes the steps to create a Redirect action that redirects the client to the URL http://redirectURL.

To create a responder action

  1. In the left pane of the NetScaler configuration utility, expand Protection Features, then expand Responder and click Actions.
    The Responder Actions page appears in the right pane, as shown below.
     
  2. Click Add. The Create Responder Action dialog box appears.
  3. In the Name text box, type the name of the responder action, for example Action-Responder-2.

     
  4. Under Type, select Redirect.
  5. In the Target text area, type http://redirectURL.
  6. Click Create, then click Close. The responder action you created now appears in the Responder Actions page.

More Information

Tags

appexpert appexpert Delete
responder responder Delete
how to how to Delete
redirect action redirect action Delete
client redirect client redirect Delete
protection features protection features Delete
Enter tags to add to this page:
Please wait 
Looking for a tag? Just start typing.
  1. Sep 18, 2008

    Anonymous says:

    Note that the redirect action responds with a 302 status code. This can have an ...

    Note that the redirect action responds with a 302 status code. This can have an adverse affect on search engine rankings. If this is an issue for your application then it's better to construct a responder action that performs a 301 rewrite as shown:

    add responder action "301-Redirect" respondwith "\"HTTP/1.x 301 Moved Permanently\\r\nLocation: http://www.go-here-instead.com\\r\nConnection: close\\r\nCache-Control: no-cache\\r\nPragma: no-cache\\r\n\"" -bypassSafetyCheck NO
     


Add Comment

Related Links