Automate and standardize website content policies and ensure compliance to brand, legal, style, and regulatory standards.
CSS (Cascading Style Sheet) is a stylesheet language that is used to control the format and/or layout of web documents and pages.
CSS Selectors are expressions that are used to target specific HTML elements to style on a website. Use CSS selectors to improve policy definition, limit searches, and/or exclude content in a policy efficiently. After they are set up, CSS selectors can be used to select elements. In other words, selectors are patterns that are used to select the element(s) to style.
Configure a new policy and specify certain CSS selectors, or patterns of elements, to flag. The browser searches for or excludes the CSS properties only within the targeted HTML elements.
This article provides instructions on how to set up and use policies based on CSS selectors.
Basic policy setup
This section provides instructions on how to set up a basic policy.
Click Global Policies Overview, the button (mallet icon) on the top menu bar.
Alternatively, click on the header of the Content Policies section.
The Global Policies page opens.
Click Add new policy.
The NewPolicy page opens.
Click Create your own policy.
The New Policy creation page opens.
Click to select HTML pages.
The New Policy configuration pane opens.
From the options at the top of the panel on the left:
Regular Expressions in source-code exclusions are not 100% compatible with the Web Governance Policies feature. The languages are different (Java and Ruby).
Select +Add rule to policy: Click to add a rule to the policy. The rules selection list opens.
Limit or exclude: Add CSS selectors, instructions below, to either limit the search within those values or exclude the snippets with the given inputs.
Save the changes. A dialog box opens.
In the dialog box, enter the policy (required) and if needed and then click .
From the options at the top of the page, select +Add rule to the policy. Repeat the steps above to add as many rules as needed.
Click Save. The Policy List is open and the new policy is present. A policy scan begins automatically.
The Browser Extension does not yet support CSS selectors and therefore does not take any user-defined CSS selectors into consideration when it highlights matches.
Automate and standardize website content policies and ensure compliance to brand, legal, style, and regulatory standards.
CSS (Cascading Style Sheet) is a stylesheet language that is used to control the format and/or layout of web documents and pages.
CSS Selectors are expressions that are used to target specific HTML elements to style on a website. Use CSS selectors to improve policy definition, limit searches, and/or exclude content in a policy efficiently. After they are set up, CSS selectors can be used to select elements. In other words, selectors are patterns that are used to select the element(s) to style.
Configure a new policy and specify certain CSS selectors, or patterns of elements, to flag. The browser searches for or excludes the CSS properties only within the targeted HTML elements.
This article provides instructions on how to set up and use policies based on CSS selectors.
Basic policy setup
This section provides instructions on how to set up a basic policy.
Click Global Policies Overview, the button (mallet icon) on the top menu bar.
Alternatively, click on the header of the Content Policies section.
The Global Policies page opens.
Click Add new policy.
The NewPolicy page opens.
Click Create your own policy.
The New Policy creation page opens.
Click to select HTML pages.
The New Policy configuration pane opens.
From the options at the top of the panel on the left:
Regular Expressions in source-code exclusions are not 100% compatible with the Web Governance Policies feature. The languages are different (Java and Ruby).
Select +Add rule to policy: Click to add a rule to the policy. The rules selection list opens.
Limit or exclude: Add CSS selectors, instructions below, to either limit the search within those values or exclude the snippets with the given inputs.
Save the changes. A dialog box opens.
In the dialog box, enter the policy (required) and if needed and then click .
From the options at the top of the page, select +Add rule to the policy. Repeat the steps above to add as many rules as needed.
Click Save. The Policy List is open and the new policy is present. A policy scan begins automatically.
The Browser Extension does not yet support CSS selectors and therefore does not take any user-defined CSS selectors into consideration when it highlights matches.