To add a new rule of your own to your web policy, you can write it in the underlying code.
WARNING: Improperly modifying this code can severely damage the web policy functions. Be sure to understand the code before you add anything to it or change it otherwise.
On the user interface for Secure Web Gateway, select Policy > Web Policy > Policy.
On the Web Policy page, select the rule set where you want to insert your new rule. Select it from the policy tree on the left. For example, expand Global Block and select Global Block Lists.
- In the configuration area on the right, click the three dots at the end of the row for the rule set that you selected, for example, Global Block Lists.
A menu with actions appears.
- Under Add Custom Rule, select Via Policy Code.
A row with fields for the new rule is inserted after the last of the already existing rules.
- In the Rule Name field, type a name for the new rule. Optionally, click Add Description and in the field that appears, type a plain-text description of the new rule.
- Click Edit.
A field for entering code appears under the rule name and description.
- Type the code for the new rule in this field.
NOTE: The code shown here below is an example. It is taken from an already existing rule. For your new rule, use your own code, not this sample code.
- Click Save.
You have now added a rule of your own to the code that underlies your web policy.
The addition takes effect after you have also saved it using the Publish option.