Product Documentation

Bypassing the Safety Check

Aug 31, 2016

When you create a rewrite action, the NetScaler verifies that the expression you used to create the action is safe. Expressions created by the NetScaler from run-time data, such as URLs contained in HTTP requests, can cause unexpected errors. The NetScaler reports expressions that cause such errors as unsafe expressions.

In some cases, the expressions may be safe. For example, the NetScaler cannot validate an expression that contains a URL that does not resolve, even if the URL does not resolve because the Web server is temporarily unavailable. You can manually bypass the Safety Check to allow these expressions.

To bypass the safety check by using the command line interface

At the command prompt, type the following commands to bypass the safety check and verify the configuration:
  • set rewrite action <name> -bypassSafetyCheck YES
  • show rewrite action <name>

Example

 
> set rewrite action insertact -bypassSafetyCheck YES 
 Done 
> show rewrite action insertact 
 
        Name: insertact 
        Operation: insert_http_header   Target:Client-IP 
        Value:CLIENT.IP.SRC 
        BypassSafetyCheck : YES 
        Hits: 0 
        Undef Hits: 0 
        Action Reference Count: 2 
 Done

To bypass safety check by using the configuration utility

  1. Navigate to AppExpert > Rewrite > Actions.
  2. In the details pane, select the rewrite action to be exempted from the safety check, and then click Open.
  3. In the Configure Rewrite Action dialog box, select the Bypass Safety Check check box.
  4. Click OK.