Skip to main content

Add URL Filtering Rule

Adds a URL Filtering Policy rule.

External Documentation

To learn more, visit the Zscaler Internet Access documentation.

Basic Parameters

ParameterDescription
ActionAction taken when traffic matches rule criteria.Note: The ISOLATE action is available only if Cloud Browser Isolation is enabled for your organization.
Rule DescriptionAdditional information about the URL Filtering rule.
Rule IDThe URL Filtering Rule ID.
Rule NameThe rule's name.

Advanced Parameters

ParameterDescription
Block OverrideWhen set to true, a 'BLOCK' action triggered by the rule could be overridden. If true and both overrideGroup and overrideUsers are not set, the BLOCK triggered by this rule could be overridden for any users. If blockOverride is not set, 'BLOCK' action cannot be overridden.
Cbi Profile Default ProfileIndicates whether this is a default browser isolation profile. Zscaler sets this field.
Cbi Profile IDThe universally unique identifier (UUID) for the browser isolation profile.Note: This parameter is required for the ISOLATE action and is not applicable to other actions.
Cbi Profile NameThe name of the browser isolation profile.Note: This parameter is required for the ISOLATE action and is not applicable to other actions.
Cbi Profile URLThe browser isolation profile URL.Note: This parameter is required for the ISOLATE action and is not applicable to other actions.
CiparuleIf set to true, the CIPA Compliance rule is enabled.
DepartmentsThe object of departments for which rule must be applied. For more information about how to use this parameter visit Zscaler's Documentation.
Device GroupsThis field is applicable for devices that are managed using Zscaler Client Connector. If no value is set, this field is ignored during the policy evaluation.For more information about how to use this parameter visit Zscaler's Documentation.
DevicesThe object of devices for which rule must be applied. Specifies devices that are managed using Zscaler Client Connector. If no value is set, this field is ignored during the policy evaluation.For more information about how to use this parameter visit Zscaler's Documentation.
End User Notification URLURL of end user notification page to be displayed when the rule is matched. Not applicable if either 'overrideUsers' or 'overrideGroups' is specified.
Enforce Time ValidityWhether to enforce a set a validity time period for the URL Filtering rule.
GroupsThe object of groups for which rule must be applied. For more information about how to use this parameter visit Zscaler's Documentation.
LabelsThe URL Filtering rule's label. Rule labels allow you to logically group your organization's policy rules. Policy rules that are not associated with a rule label are grouped under the Untagged label.For more information about how to use this parameter visit Zscaler's Documentation.
Last Modified By ExtensionsAdditional information about the entity that modified the rule last. For more information about how to use this parameter visit Zscaler's Documentation.
Last Modified By External IDThe external ID of the entity that modified the rule last.
Last Modified By IDThe ID of the entity that modified the rule last.
Last Modified By NameThe name of the entity that modified the rule last.
Last Modified TimeWhen the rule was last modified.
Location GroupsThe object of the location groups to which the rule must be applied. For more information about how to use this parameter visit Zscaler's Documentation.
LocationsThe object of locations for which rule must be applied. For more information about how to use this parameter visit Zscaler's Documentation.
OrderOrder of execution of rule with respect to other URL Filtering rules.
Override GroupsThe object of groups for which this rule can be overridden. Applicable only if blockOverride is set to 'true' and action is 'BLOCK'. If this overrideGroups is not set, 'BLOCK' action can be overridden for any group.For more information about how to use this parameter visit Zscaler's Documentation.
Override UsersThe object of users for which this rule can be overridden. Applicable only if blockOverride is set to 'true', action is 'BLOCK' and overrideGroups is not set. If this overrideUsers is not set, 'BLOCK' action can be overridden for any user.For more information about how to use this parameter visit Zscaler's Documentation.
ProtocolsProtocol criteria.
RankAdmin rank of the admin who creates this rule.
Request MethodsRequest method for which the rule must be applied. If not set, rule is applied to all methods.
Size QuotaSize quota in KB beyond which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
StateThe rule's state.
Time QuotaTime quota in minutes, after which the URL Filtering rule is applied. If not set, no quota is enforced. If a policy rule action is set to 'BLOCK', this field is not applicable.
Time WindowsThe object of time intervals during which rule must be enforced. For more information about how to use this parameter visit Zscaler's Documentation.
URL Categories 1List of URL categories for which rule is be applied. For the list of URL categories visit Zscaler's Documentation.
URL Categories 2List of URL categories for which rule is be applied.Note: The URL Categories 1 and URL Categories 2 parameters are connected with a logical AND operator so that the URL Filtering policy rules are triggered when it matches the selected categories in both the URL Categories fields.For the list of URL categories visit Zscaler's Documentation.
UsersThe object of users for which rule must be applied. For more information about how to use this parameter visit Zscaler's Documentation.
Validity End TimeIf Enforce Time Validity is set to true, the URL Filtering rule ceases to be valid on this end date and time.
Validity Start TimeIf Enforce Time Validity is set to true, the URL Filtering rule is valid starting on this date and time.
Validity Time Zone IDIf Enforce Time Validity is set to true, the URL Filtering rule date and time is valid based on this time zone ID.
Workload GroupsThe list of preconfigured workload groups to which the policy must be applied. For more information about how to use this parameter visit Zscaler's Documentation.

Example Output

{
"id": 0,
"name": "string",
"order": 0,
"protocols": [
"SMRULEF_ZPA_BROKERS_RULE"
],
"locations": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"groups": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"departments": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"users": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"urlCategories": [
"ANY"
],
"urlCategories2": [
"ANY"
],
"state": "DISABLED",
"timeWindows": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"workloadGroups": [
{
"id": 0,
"name": "string",
"description": "string",
"expressionJson": {
"expressionContainers": [
{
"tagType": "ANY",
"operator": "AND",
"tagContainer": {
"tags": [
{
"key": "string",
"value": "string"
}
],
"operator": "AND"
}
}
]
},
"expression": "string",
"lastModifiedTime": 0,
"lastModifiedBy": {
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
}
],
"rank": 0,
"requestMethods": [
"OPTIONS"
],
"endUserNotificationUrl": "string",
"overrideUsers": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"overrideGroups": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"blockOverride": false,
"timeQuota": 0,
"sizeQuota": 0,
"description": "string",
"locationGroups": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"labels": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"validityStartTime": 0,
"validityEndTime": 0,
"validityTimeZoneId": "string",
"lastModifiedTime": 0,
"lastModifiedBy": {
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
},
"enforceTimeValidity": true,
"devices": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"deviceGroups": [
{
"id": 0,
"name": "string",
"externalId": "string",
"extensions": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
],
"deviceTrustLevels": [
"ANY"
],
"action": "BLOCK",
"cbiProfile": {
"id": "string",
"name": "string",
"url": "string",
"defaultProfile": true
},
"ciparule": false
}

Workflow Library Example

Add Url Filtering Rule with Zscaler Internet Access and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop