This article tells you how to set up scan exclusions.
The Scan exclusion function in Acquia Web Governance lets Admin users configure custom exclusions to website scans.
Add exclusions to accessibility, readability, and misspelling checks on a customer level and then apply them to specific domains.
Scan exclusions use Regular Expressions (regexes). Regexes are application programming interfaces (APIs) that define string patterns. You can use a regex to search, manipulate, and edit a string in Java. For example, a regex can define the constraints for email validation and passwords.
Note
Regexes in path constraints are not fully compatible with the Content
Policies
module. The languages are different (Java and Ruby). For more information and examples, read Class Patterns by Oracle.
Video walkthrough on scan exclusion setup
This video provides a walkthrough of the steps outlined in this document.
Navigation
Follow these steps to view current scan exclusions:
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Scan Exclusions landing page
This section describes the Scan Exclusions dashboard. The page contains these elements:
Tabs:
Accessibility
, Misspellings, Language Validation, and Readability.
Add scan exclusion button.
: The table contains these columns:
Create a scan exclusion
You can create four types of scan exclusions:
Accessibility
Misspellings
Language Validation
Readability
The sections below give the steps for each type of scan exclusion.
Note
If a domain with the same selected CMS exists on the Web Governance account, the domain automatically inherits the exclusion.
If the CMS used for your domain is not present in the list, contact the Support team and ask them to investigate if it is possible to add it.
Create an Accessibility scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Add a scan exclusion.
In the Details section, provide the requested information:
Type: Select Accessibility.
Title: Provide a title for the exclusion.
Auto-apply to domains with CMS: Click the arrow and select a CMS.
Apply exclusion to domains: Click the arrow and type in a search phrase to find domains.
HTML Exclusion: Provide the following information to exclude elements based on their name in the web page source code:
Type (required). Select from the available options:
Exact: This type identifies and filters out all instances where the complete and exact HTML snippet is displayed. For example, the snippet https://www. example.com/ is an exact match for https://www.example.com/.
The following HTML snippets are not exact matches:
https://www.example.com
Create a Misspellings scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Add a scan exclusion.
In the Details section, provide the requested information:
Type: Select Misspellings.
Title: Provide a title for the exclusion.
Auto-apply to domains with CMS: Click the arrow and select a CMS.
Apply exclusion to domains: Click the arrow and type in a search phrase to find domains.
In the CSS selector exclusion section, provide the requested information to exclude an element based on its CSS selector tagname, class, ID, or attribute.
Save the form.
Add the updated script to the HTML code. For more information, read How to add the script.
Create a Language Validation scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Add a scan exclusion.
In the Details section, provide the requested information:
Type: Select Language Validation.
Title: Provide a title for the exclusion.
Auto-apply to domains with CMS: Click the arrow and select a CMS.
Apply exclusion to domains: Click the arrow and type in a search phrase to find domains.
In the CSS selector exclusion section, provide the requested information to exclude an element based on its CSS selector tagname, class, ID, or attribute.
Save the form.
Add the updated script to the HTML code. For more information, read How to add the script.
Create a Readability scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Add a scan exclusion.
In the Details section, provide the requested information:
Type: Select Readability.
Title: Provide a title for the exclusion.
Auto-apply to domains with CMS: Click the arrow and select a CMS.
Apply exclusion to domains: Click the arrow and type in a search phrase to find domains.
In the CSS selector exclusion section, provide the requested information to exclude an element based on its CSS selector tagname, class, ID, or attribute.
Save the form.
Add the updated script to the HTML code. For more information, read How to add the script.
Misspelled words scan exclusions
This section provides instructions on how to exclude a segment of a webpage from the spellcheck.
Title: Add a title that describes the exclusion (required).
Auto-apply to domains with CMS: Select the CMS that is used for your domain. Select None (default) if there is no CMS.
Apply exclusion to domains: Begin to type the name of the domain to populate the list and select one or more domains to apply this exclusion on.
CSS Selector Exclusion (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one. Add as many as you need. Subsequent scans identify elements that match the entered CSS selector patterns and they are omitted from the results.
Click Save.
Add the updated script to the HTML code. For more information, read How to add the script.
Note
For more information, read:
Misspellings for instructions on how to use the Content Quality module to repair misspelled words.
How to handle misspellings for instructions on how to repair misspelled words with other Web Governance modules.
Readability scan exclusions
This section provides instructions on how to exclude a webpage from the Readability feature.
Title (required): Add a title that describes the exclusion.
Auto-apply to domains with CMS: Select the CMS that is used for your domain. Select None (default) if there is no CMS.
Apply exclusion to domains: Begin typing the name of the domain and select one or more domains to apply this exclusion on.
CSS Selector Exclusion (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one. Add as many as you need. Subsequent scans identify elements that match the entered CSS selector patterns and they are omitted from the results.
Click Save.
Add the updated script to the HTML code. For more information, read How to add the script.
Edit a scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Scan Exclusions on the left menu.
Find the scan exclusion that you want to edit.
Click the Action icon (three vertical dots) on that row.
Click Edit.
Change the data as necessary.
Save the form.
Replace the existing script with the updated script in the HTML code. For more information, read How to add the script.
Delete a scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Find the scan exclusion that you want to delete.
Click the Action icon (three vertical dots) on that row.
Click Delete.
Click Delete in the confirmation dialog.
Save the form.
Replace the existing script with the updated script in the HTML code. For more information, read How to add the script.
This article tells you how to set up scan exclusions.
The Scan exclusion function in Acquia Web Governance lets Admin users configure custom exclusions to website scans.
Add exclusions to accessibility, readability, and misspelling checks on a customer level and then apply them to specific domains.
Scan exclusions use Regular Expressions (regexes). Regexes are application programming interfaces (APIs) that define string patterns. You can use a regex to search, manipulate, and edit a string in Java. For example, a regex can define the constraints for email validation and passwords.
Note
Regexes in path constraints are not fully compatible with the Content
Policies
module. The languages are different (Java and Ruby). For more information and examples, read Class Patterns by Oracle.
Video walkthrough on scan exclusion setup
This video provides a walkthrough of the steps outlined in this document.
Navigation
Follow these steps to view current scan exclusions:
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Scan Exclusions landing page
This section describes the Scan Exclusions dashboard. The page contains these elements:
Tabs:
Accessibility
, Misspellings, Language Validation, and Readability.
Add scan exclusion button.
: The table contains these columns:
Create a scan exclusion
You can create four types of scan exclusions:
Accessibility
Misspellings
Language Validation
Readability
The sections below give the steps for each type of scan exclusion.
Note
If a domain with the same selected CMS exists on the Web Governance account, the domain automatically inherits the exclusion.
If the CMS used for your domain is not present in the list, contact the Support team and ask them to investigate if it is possible to add it.
Create an Accessibility scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Add a scan exclusion.
In the Details section, provide the requested information:
Type: Select Accessibility.
Title: Provide a title for the exclusion.
Auto-apply to domains with CMS: Click the arrow and select a CMS.
Apply exclusion to domains: Click the arrow and type in a search phrase to find domains.
HTML Exclusion: Provide the following information to exclude elements based on their name in the web page source code:
Type (required). Select from the available options:
Exact: This type identifies and filters out all instances where the complete and exact HTML snippet is displayed. For example, the snippet https://www. example.com/ is an exact match for https://www.example.com/.
The following HTML snippets are not exact matches:
https://www.example.com
Create a Misspellings scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Add a scan exclusion.
In the Details section, provide the requested information:
Type: Select Misspellings.
Title: Provide a title for the exclusion.
Auto-apply to domains with CMS: Click the arrow and select a CMS.
Apply exclusion to domains: Click the arrow and type in a search phrase to find domains.
In the CSS selector exclusion section, provide the requested information to exclude an element based on its CSS selector tagname, class, ID, or attribute.
Save the form.
Add the updated script to the HTML code. For more information, read How to add the script.
Create a Language Validation scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Add a scan exclusion.
In the Details section, provide the requested information:
Type: Select Language Validation.
Title: Provide a title for the exclusion.
Auto-apply to domains with CMS: Click the arrow and select a CMS.
Apply exclusion to domains: Click the arrow and type in a search phrase to find domains.
In the CSS selector exclusion section, provide the requested information to exclude an element based on its CSS selector tagname, class, ID, or attribute.
Save the form.
Add the updated script to the HTML code. For more information, read How to add the script.
Create a Readability scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Add a scan exclusion.
In the Details section, provide the requested information:
Type: Select Readability.
Title: Provide a title for the exclusion.
Auto-apply to domains with CMS: Click the arrow and select a CMS.
Apply exclusion to domains: Click the arrow and type in a search phrase to find domains.
In the CSS selector exclusion section, provide the requested information to exclude an element based on its CSS selector tagname, class, ID, or attribute.
Save the form.
Add the updated script to the HTML code. For more information, read How to add the script.
Misspelled words scan exclusions
This section provides instructions on how to exclude a segment of a webpage from the spellcheck.
Title: Add a title that describes the exclusion (required).
Auto-apply to domains with CMS: Select the CMS that is used for your domain. Select None (default) if there is no CMS.
Apply exclusion to domains: Begin to type the name of the domain to populate the list and select one or more domains to apply this exclusion on.
CSS Selector Exclusion (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one. Add as many as you need. Subsequent scans identify elements that match the entered CSS selector patterns and they are omitted from the results.
Click Save.
Add the updated script to the HTML code. For more information, read How to add the script.
Note
For more information, read:
Misspellings for instructions on how to use the Content Quality module to repair misspelled words.
How to handle misspellings for instructions on how to repair misspelled words with other Web Governance modules.
Readability scan exclusions
This section provides instructions on how to exclude a webpage from the Readability feature.
Title (required): Add a title that describes the exclusion.
Auto-apply to domains with CMS: Select the CMS that is used for your domain. Select None (default) if there is no CMS.
Apply exclusion to domains: Begin typing the name of the domain and select one or more domains to apply this exclusion on.
CSS Selector Exclusion (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one. Add as many as you need. Subsequent scans identify elements that match the entered CSS selector patterns and they are omitted from the results.
Click Save.
Add the updated script to the HTML code. For more information, read How to add the script.
Edit a scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Click Scan Exclusions on the left menu.
Find the scan exclusion that you want to edit.
Click the Action icon (three vertical dots) on that row.
Click Edit.
Change the data as necessary.
Save the form.
Replace the existing script with the updated script in the HTML code. For more information, read How to add the script.
Delete a scan exclusion
Log in to Web Governance.
Click Admin on the top menu bar.
Click Configuration on the left menu.
Select Scan Exclusions.
Find the scan exclusion that you want to delete.
Click the Action icon (three vertical dots) on that row.
Click Delete.
Click Delete in the confirmation dialog.
Save the form.
Replace the existing script with the updated script in the HTML code. For more information, read How to add the script.
Actions: Opens a menu with Edit and Delete options.
http://www.example.com/
https://example.com/
https://example.com/?something=1
https://example.com/#something=1
Regex: This type identifies and filters out specific patterns of HTML through the use of regular expressions.
Contains: This type identifies and filters out all snippets that contain the HTML values entered. For example, the snippet example.com is a match for the following HTML snippets:
Checks: Click the arrow and select the accessibility checks that you want to exclude from the scan.
Save the form.
Add the updated script to the HTML code. For more information, read How to add the script.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Data table
Title: Shows the name of the scan exclusion.
Actions: Opens a menu with Edit and Delete options.
http://www.example.com/
https://example.com/
https://example.com/?something=1
https://example.com/#something=1
Regex: This type identifies and filters out specific patterns of HTML through the use of regular expressions.
Contains: This type identifies and filters out all snippets that contain the HTML values entered. For example, the snippet example.com is a match for the following HTML snippets: