Introduction¶
This article provides instructions on how to set up policies for links. For full instructions on how to build a custom policy, visit Create a custom policy.
Custom links policies¶
This section provides instructions on how to set up policies to find specific links. These are located in the href=""
section of the anchor tags on the domain.
To create this policy:
- Check the RegEx.
- Clear the Case sensitive box.
Enter the following in the Query field and replace the word SEARCH
with what you want to find inside the link portion:
href=("|').*SEARCH.*("|')
For example:
The query matches:
<a href="http://test.com/foo">here</a>
<a href="http://foo.com/test">click</a>
<a href="http://test.foo/test">click here</a>
However, it does not match:
<a href="http://test.com/test">foo</a>
If the policy you need is difficult to create, contact Support for assistance.
Rule operators¶
Rules¶
- 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 where the title is not the header.
- Page title length: Define when the rule must apply for the title.
- Heading text: Search for text in headers (h1,h2,h3,h4,h5,h6).
- Heading text length: Define when the rule must apply for header texts.
- Meta header: Search for meta header tags that match the query.
- Meta header length: Define when the rule must apply for meta headers.
- Link text length: Define when the rule must apply for link texts.
- External link count: Define when the rule must apply for external links.
- File size: Search for 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 must apply for image texts.
- Readability level: Search for text that is in compliance with a school degree.