Link Cohesion

Link Cohesion

Link Cohesion aims to detect problems with Hyperlinks used within HTML documents, both internal and external to the domain of the current document.

This policy category is broken down into 3 policies.


Detect Broken Image Link

Checks for broken image links. This policy will check each image element and attempt to check if the 'src' attribute is valid.

A HTTP call is made to the location found regardless of the current domain, any status code returned other than '200' is deemed invalid and generates a policy exception.

This policy also accepts an optional configuration entry. This configuration entry allows specific status codes to be reported on, ignoring all others. If the policy is configured to report on '404' status codes, only these status codes will be deemed invalid.


Broken Internal Link

Detects broken internal links. This policy will check each a element that contains a href attribute and attempt to check if the attribute value is valid.

A HTTP call is made to the location found that is internal to the current domain, any status code returned other than a '200' is deemed invalid and generates a policy exception.

This policy also accepts an optional configuration entry. This configuration entry allows specific status codes to be reported on, ignoring all others. If the policy is configured to report on '404' status codes, only these status codes will be deemed invalid.


Broken External Link

Detects broken external links. This policy will check each a element that contains a href attribute and attempt to check if the attribute value is valid.

A HTTP call is made to the location found that is not internal to the current domain, any status code returned other than a '200' is deemed invalid and generates a policy exception.

This policy also accepts an optional configuration entry. This configuration entry allows specific status codes to be reported on, ignoring all others. If the policy is configured to report on '404' status codes, only these status codes will be deemed invalid.