Bypassing the Safety Check


The Bypass Safety Check parameter is deprecated from NetScaler 12.0 build 56.20 onwards. However, Bypass Safety Check parameter is removed and no longer available on the Citrix ADC appliance release 13.1 onwards.

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

In some cases, the expressions may be safe. For example, the Citrix ADC 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>


> set rewrite action insertact -bypassSafetyCheck YES
> show rewrite action insertact

        Name: insertact
        Operation: insert_http_header   Target:Client-IP
        BypassSafetyCheck : YES
        Hits: 0
        Undef Hits: 0
        Action Reference Count: 2

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.
Bypassing the Safety Check