XRule: Search Images
The Search Image XRule searches the files on your website for links to images that are referenced inside IMG tags. The images must match the criteria specified on this page. You can use this type of custom rule to search for references to privacy seals, logos or other images that should, or should not, exist on the website. The search options on the page are combined using AND logic.
The XRule will search only IMG tags. When performing a search, the options on this page are combined using AND logic. The text fields in the template XRules all accept regular expressions as long as they are preceded by regexp:. They do not accept DOS expressions.
Page element | Description |
---|---|
Name | The name assigned to the XRule. |
Description (optional) | Describe the purpose of the XRule so that users can understand what it is searching for; for example, "Search for the old blue privacy logo". |
Original link | Select this option to find any link on the page, whether your search text is an exact match or a partial match to the link. If you know that the image has a partial URL of /products/gizmo.gif, but the image might be referenced inside any link, and not necessarily an IMAGE tag, enter the partial URL as the original link. Enter the search text in the Original Link field. |
Canonical URL | Select this option to find any absolute URL on the page that matches your search text. An absolute URL is one that includes the scheme, domain and path. For example, the URL http://www.example.com/products/gizmo.asp is absolute. Enter the search text in the Canonical URL field. |
Alt text | Select this option to limit the search to an image with certain Alt text. |
Image width | Select this option to limit the search to an image having a Width attribute equal to a certain value. For example, the privacy seal was published to your website in the wrong size. Knowing the size of the incorrect image you can search for it more quickly by limiting the search with its width. |
Operator | Select an operator for the width if you do not have an exact width. |
Image height | Select this option to limit the search to an image that has a Height attribute equal to a certain value. |
Operator | Select an operator for the height if you do not have an exact height. |
Make the search case sensitive | Select this option if you want the search to be case sensitive. To find a match, the search criteria and the item found must be exactly the same. For example, if you entered www.example.com/Products/AppScan/ as a case-sensitive search, the XRule would not find www.example.com/products/Appscan. |
Only search internal links | Select this option to narrow the search to links that are included in the domains found within your Starting URLs, the Servers and Domains page of the job, and the Servers and Domains page on the Administration tab. |
Only enable XRule if it is required by a job or report | Select this option to have the XRule run only when required. If the XRule is not required by a job or report, it will not be run. Checking this option saves time when scanning your site because the XRule only runs when necessary. |
Always enable XRule | Select this option to have the XRule run whenever the job runs. This method is the least efficient way to use an XRule. |
Always disable XRule (if job experiences problems) | Select this option to disable the XRule from a job or report. The rule will never be run, even if it is required. Disable the XRule when it causes problems with the job, such as a scan continuing indefinitely. |
This rule defines a privacy statement | Select this option when you want the pages that do not match this rule to be automatically reported in the Pages Collecting PII without a Privacy Statement Link report. |