The Scan exclusion function in Acquia Web Governance lets Admin users configure custom exclusions to website scans. The configuration helps to target particular elements and prevent the contents from being flagged as issues.
Add exclusions to accessibility, readability, and misspelling checks on a customer level and then apply them to specific domains.
This document provides instructions on how to configure a scan exclusion.
Video walkthrough on scan exclusion setup¶
This video provides a quick walkthrough of the steps outlined in this document.
Scan exclusion walkthrough
Navigation¶
Click Admin Settings (the gear icon) on the top menu bar.
The system displays the Admin dashboard.
- Click Add a Scan Exclusion in the Quick actions section.
Alternatively:
- Click Configuration (the wrench icon) on the left menu bar.
- Select Scan Exclusion from the expanded options.
- Select the type of scan exclusion that you want to add:
- Accessibility
- Misspellings
- Readability
Accessibility scan exclusions¶
This section provides instructions on the fields that you need to complete to create an accessibility scan exclusion.
- Title (required): Add a title that describes the exclusion.
- Auto-apply to domains with CMS: Do one of the following:
- Select None (default) if there is no CMS.
- Scroll through the list and select the CMS that is used for your domain.
- 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.comhttp://www.example.com/https://example.com/https://example.com/?something=1https://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:https://www.example.com/https://www.example.comhttp://www. example.com/https://example.com/https://example.com/?query=1https://example.com/subpagehttps://example.com/subpage/product_page
- Value (required). Enter or paste the source code snippet that you want to exclude.
- For example:
<h2 class: “form-title”>
- Checks
- Begin typing the name of the check and select the Accessibility checks to exclude from the list. Select as many as needed.
- Click Save.
- Repeat as needed.
- Add the updated script to the HTML code. For more information, visit 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, visit How to add the script.
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, visit How to add the script.
Editing a scan exclusion¶
This section provides instructions on how to edit an existing scan exclusion.
Click Admin Settings (the gear icon) on the top menu bar.
The system displays the Admin dashboard.
- Click Configuration (the wrench icon) on the left menu bar.
Select Scan Exclusion from the expanded options.
The system displays the list of existing scan exclusions.
- On the same row as the scan exclusion that you want to edit, click the kebab menu and select Edit.
- Make the changes as needed.
- Save the changes.
Deleting a scan exclusion¶
This section provides instructions on how to delete a scan exclusion.
Click Admin Settings (the gear icon) on the top menu bar.
The system displays the Admin dashboard.
- Click Configuration (the wrench icon) on the left menu bar.
Select Scan Exclusion from the expanded options.
The system displays the list of existing scan exclusions.
Click the kebab menu on the same row as the scan exclusion that you want to delete and select Delete.
The system displays a confirmation dialog box.
- Click Delete in the dialog box to confirm. The system removes the scan exclusion from the list and from any domain that it was used on.
Additional resources¶
For more information, visit: