Acquia Copilot is a conversational AI connected into our product documentation and knowledge base. Ask Copilot about product features, technical details, troubleshooting and how to get started with Acquia products.
The Policies feature includes a large collection of pre-made policies, as well as the option to create custom policies. This article provides instructions on how to create a custom policy.
Add a pre-made policy
For instructions on how to add a pre-made policy, see the user guide article:
Select +Add rule to policy: Click to add a rule to the policy. The rules selection list opens.
Drag and drop a rule into the Policy Rules section. The New rule pane opens.
Fill in the fields, each policy rule selection may have any combination of the following configuration options:
Rule name (required): Click in the text field and create a short description of the rule.
Search for content that: Click the drop-down arrow and select the type of text to search for. The options are:
Starts with: Scans for a match that starts with a specified character, word, or string.
Contains: Scans for a match that contains single characters, words, or phrases.
Contains Words: Scans for a match that contains specific individual words.
Ends with: Scans for a match that ends with a specified character, word, or string.
Equal: Scans for a match that is equal to a specified character, word, or string.
Regex: Scans for a match in a regular expression set of strings.
Note
Policies are not 100% compatible with Regular Expressions as source-code exclusions in Web Governance. The languages are different (Java and Ruby).
Click Save. The New rule-Text window closes and the Policy Rules page is visible.
Click Save on this page to save all of the changes. A dialog box opens.
Enter the policy Name (required) and include a Note in the dialog box and then click Save.
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.
Edit or Remove a Policy
This section gives information on how to edit or remove a policy from the global policy list.
From the Web Governance Dashboard (Home), click the URL for a website. The Statistics page opens.
In the Content Policies section, click the arrow. The Policies summary page opens.
From the menu on the left-hand side of the page, click Policy List. The Policy List page opens.
In the list, click the small icons under the rule name to view the rule attributes.
On the same rule as a policy, click Action and select Show on Global Policy List.
The Policy List page opens.
On the same row as a policy, click Action and select:
Run policy again: Select to scan this policy again.
Edit: Select to edit the policy.
Clone: Select to make an exact duplicate of the policy.
Archive: Select to remove the policy from the active scan, but save it for later in the archive.
A dialog box appears, asking, "Are you sure, you want to Archive the Policy (policy name)?
Click OK to archive the policy or Cancel to cancel the action.
To retrieve an archived policy: From the Home page, click Global Policy Overview (the mallet icon on the menu bar). The Global Policies page opens.
Click Policy List.
The Policy List page opens.
Click Action on the same row as a policy. The list expands.
Select Unarchive.
A dialog box asks for confirmation, "Are you sure you want to remove the policy (policy name) from the archive?" Click OK to restore the policy to the active policies list, it will run on the next scan.
Delete: Click to remove the policy permanently.
Save the changes. A dialog box opens.
In the dialog box, edit the policy Name and Note if needed and then click Save.
History
The History Center stores all Policies issues and details from previous scans.
Click History Center (bar graph icon), located on the top menu bar.
The History Center landing page opens.
The page contains the following layout:
Domain: In the first field, click to expand the list of domains.
Click to select a domain from the list or switch to another domain.
Module: In the second field, click to expand the list of available modules.
Click to select Policies from the drop-down list. The Policies page of the History Center opens.
The topmost section gives information on the profile that is being used for the results shown.
Viewing as Profile: This shows the profile that is being used.
Important: The Dashboard always shows data with the default profile selected. To change this, select a new profile (click the drop-down arrow to see the available profiles). Please be aware that when you change the profile, the numbers on all three sections inside the Performance module update accordingly.
Graph with performance speed and date as well as a donut chart showing the average performance score.
Scan history results: This table shows valuable scan data from previous scans.
Scan history results: This table shows valuable scan data from previous scans.
Crawled at: Date and time of scan.
Pages crawled: Number of pages scanned.
Rule Operators
This section gives information about the rule operators and how they can be used.
Starts with: Policy will search for any snippet starting with the inserted text
Contains: Policy searches for any instances of the inserted text (single word)
Contains words: Policy searches for multiple words. Use commas to separate the words.
Contains sentence: Policy searches for any instances of the inserted sentence or text.
Ends with: Policy will search for any snippet ending with the inserted text
Equal: Policy searches for an exact match for the inserted text or value. Example: “Monsido” - match. “About Monsido” - no match.
Regex: Use regular expressions to define what should be searched for.
Note
Policies are not 100% compatible with Regular Expressions as source-code exclusions in Web Governance. The languages are different (Java and Ruby).
Conforms with: Use regular expressions to define the correct structure or form of the inserted value
Less than: Find any results less than the inserted value
Less than or equal: Find any results less than or equal to the inserted value
Greater than: Find any results greater than the inserted value
Greater than or equal: Find any results greater than or equal to the inserted value
(Meta header) Date age greater than: Find meta tags older than the inserted value. Choose the time interval that matches the way your meta tag dates are written.
(Meta header) Date age less than: Find meta tags younger than the inserted value. Choose the time interval that matches the way your meta tag dates are written.
Note
The Browser Extension does not yet support CSS selectors and therefore does not take any user-defined CSS selectors into consideration when it highlights the matching values.
Rules
This section gives information about rules and how they can be used.
Page HTML: Search for text in the entire domains html
Page URL: Set a rule for internal page URLs
Text: Search for text excluding CSS and HTML tags
Page title: Search for text in the page title (title is not the header)
Page title length: Define when the rule should apply for the title
Heading text: Search for text in headers (h1,h2,h3,h4,h5,h6)
Heading text length: Define when the rule should apply header texts
Meta header: Search for meta header tags, that matches query
Meta header length: Define when the rule should apply for meta headers
Link text length: Define when the rule should apply for link texts
External link count: Define when the rule should apply for external links
File size: Search files across selected domains
Image size: Search for images across selected domains
Image text: Search for images with this name
Image text length: Define when the rule should apply for image texts
Readability level: Search for text that is in compliance with a school degree.
Additional resources
To add the Policies feature to your plan, contact your sales representative.
Create a custom policy
Introduction
The Policies feature includes a large collection of pre-made policies, as well as the option to create custom policies. This article provides instructions on how to create a custom policy.
Add a pre-made policy
For instructions on how to add a pre-made policy, see the user guide article:
Select +Add rule to policy: Click to add a rule to the policy. The rules selection list opens.
Drag and drop a rule into the Policy Rules section. The New rule pane opens.
Fill in the fields, each policy rule selection may have any combination of the following configuration options:
Rule name (required): Click in the text field and create a short description of the rule.
Search for content that: Click the drop-down arrow and select the type of text to search for. The options are:
Starts with: Scans for a match that starts with a specified character, word, or string.
Contains: Scans for a match that contains single characters, words, or phrases.
Contains Words: Scans for a match that contains specific individual words.
Ends with: Scans for a match that ends with a specified character, word, or string.
Equal: Scans for a match that is equal to a specified character, word, or string.
Regex: Scans for a match in a regular expression set of strings.
Note
Policies are not 100% compatible with Regular Expressions as source-code exclusions in Web Governance. The languages are different (Java and Ruby).
Click Save. The New rule-Text window closes and the Policy Rules page is visible.
Click Save on this page to save all of the changes. A dialog box opens.
Enter the policy Name (required) and include a Note in the dialog box and then click Save.
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.
Edit or Remove a Policy
This section gives information on how to edit or remove a policy from the global policy list.
From the Web Governance Dashboard (Home), click the URL for a website. The Statistics page opens.
In the Content Policies section, click the arrow. The Policies summary page opens.
From the menu on the left-hand side of the page, click Policy List. The Policy List page opens.
In the list, click the small icons under the rule name to view the rule attributes.
On the same rule as a policy, click Action and select Show on Global Policy List.
The Policy List page opens.
On the same row as a policy, click Action and select:
Run policy again: Select to scan this policy again.
Edit: Select to edit the policy.
Clone: Select to make an exact duplicate of the policy.
Archive: Select to remove the policy from the active scan, but save it for later in the archive.
A dialog box appears, asking, "Are you sure, you want to Archive the Policy (policy name)?
Click OK to archive the policy or Cancel to cancel the action.
To retrieve an archived policy: From the Home page, click Global Policy Overview (the mallet icon on the menu bar). The Global Policies page opens.
Click Policy List.
The Policy List page opens.
Click Action on the same row as a policy. The list expands.
Select Unarchive.
A dialog box asks for confirmation, "Are you sure you want to remove the policy (policy name) from the archive?" Click OK to restore the policy to the active policies list, it will run on the next scan.
Delete: Click to remove the policy permanently.
Save the changes. A dialog box opens.
In the dialog box, edit the policy Name and Note if needed and then click Save.
History
The History Center stores all Policies issues and details from previous scans.
Click History Center (bar graph icon), located on the top menu bar.
The History Center landing page opens.
The page contains the following layout:
Domain: In the first field, click to expand the list of domains.
Click to select a domain from the list or switch to another domain.
Module: In the second field, click to expand the list of available modules.
Click to select Policies from the drop-down list. The Policies page of the History Center opens.
The topmost section gives information on the profile that is being used for the results shown.
Viewing as Profile: This shows the profile that is being used.
Important: The Dashboard always shows data with the default profile selected. To change this, select a new profile (click the drop-down arrow to see the available profiles). Please be aware that when you change the profile, the numbers on all three sections inside the Performance module update accordingly.
Graph with performance speed and date as well as a donut chart showing the average performance score.
Scan history results: This table shows valuable scan data from previous scans.
Scan history results: This table shows valuable scan data from previous scans.
Crawled at: Date and time of scan.
Pages crawled: Number of pages scanned.
Rule Operators
This section gives information about the rule operators and how they can be used.
Starts with: Policy will search for any snippet starting with the inserted text
Contains: Policy searches for any instances of the inserted text (single word)
Contains words: Policy searches for multiple words. Use commas to separate the words.
Contains sentence: Policy searches for any instances of the inserted sentence or text.
Ends with: Policy will search for any snippet ending with the inserted text
Equal: Policy searches for an exact match for the inserted text or value. Example: “Monsido” - match. “About Monsido” - no match.
Regex: Use regular expressions to define what should be searched for.
Note
Policies are not 100% compatible with Regular Expressions as source-code exclusions in Web Governance. The languages are different (Java and Ruby).
Conforms with: Use regular expressions to define the correct structure or form of the inserted value
Less than: Find any results less than the inserted value
Less than or equal: Find any results less than or equal to the inserted value
Greater than: Find any results greater than the inserted value
Greater than or equal: Find any results greater than or equal to the inserted value
(Meta header) Date age greater than: Find meta tags older than the inserted value. Choose the time interval that matches the way your meta tag dates are written.
(Meta header) Date age less than: Find meta tags younger than the inserted value. Choose the time interval that matches the way your meta tag dates are written.
Note
The Browser Extension does not yet support CSS selectors and therefore does not take any user-defined CSS selectors into consideration when it highlights the matching values.
Rules
This section gives information about rules and how they can be used.
Page HTML: Search for text in the entire domains html
Page URL: Set a rule for internal page URLs
Text: Search for text excluding CSS and HTML tags
Page title: Search for text in the page title (title is not the header)
Page title length: Define when the rule should apply for the title
Heading text: Search for text in headers (h1,h2,h3,h4,h5,h6)
Heading text length: Define when the rule should apply header texts
Meta header: Search for meta header tags, that matches query
Meta header length: Define when the rule should apply for meta headers
Link text length: Define when the rule should apply for link texts
External link count: Define when the rule should apply for external links
File size: Search files across selected domains
Image size: Search for images across selected domains
Image text: Search for images with this name
Image text length: Define when the rule should apply for image texts
Readability level: Search for text that is in compliance with a school degree.
Additional resources
To add the Policies feature to your plan, contact your sales representative.
Conforms with: Search for content that conforms with (free text field).
And does not conform with: Enter text to exclude.
CSS Selector: Enter a CSS selector.
Note
The Browser Extension does not yet support CSS selectors and therefore does not take any user-defined CSS selectors into consideration when highlighting matches.
Limit or exclude: Add CSS selectors to either limit the search within those values or exclude the snippets with the given inputs.
Note
The Browser Extension does not yet support CSS selectors and therefore does not take any user-defined CSS selectors into consideration when highlighting matches.
Conforms with: Search for content that conforms with (free text field).
And does not conform with: Enter text to exclude.
CSS Selector: Enter a CSS selector.
Note
The Browser Extension does not yet support CSS selectors and therefore does not take any user-defined CSS selectors into consideration when highlighting matches.
Limit or exclude: Add CSS selectors to either limit the search within those values or exclude the snippets with the given inputs.
Note
The Browser Extension does not yet support CSS selectors and therefore does not take any user-defined CSS selectors into consideration when highlighting matches.