Link Checker is configured to take no action if a link is broken. In this case, how do I disable the external link checker from validating links? In doing CPU profiling and analyzing thread dumps, link checking is affecting performance, and we’d like to turn it off.
Background: Whenever a site is loaded in AEM, the Link Checker automatically checks for the embedded links in all the content pages and marks each link as either Valid or Invalid.
This may slow down an instance or a site due to a large number of Link Checker warnings in the log. A decision can be made to disable some link checking.
Note: The Link Checker should not be enabled on publish instances.
How to disable Link Checker or configure to mark links as valid in AEM
Example 1: system/
Any external link starting with the system will not be checked. Add additional override patterns to this section by clicking the +.
This will mark all links as a valid moving forward.
Recommended: Delete all nodes under /var/linkchecker to stop the Link Checker from rechecking URLs.
If you use service.special_link_patterns, then the Link Checker still checks the URL to see if it is valid in terms of the characters and structure.
Programmatically disable external link checking
Adding this code in your page component jsp prevents external link checking from being done by calling LinkCheckerSettings.fromRequest(slingRequest).setIgnoreExternals(true). In most cases, you would only implement it on publish instances, not author. So here is some code to demonstrate:
If you only want to disable the link checking for a specific component or part of the page, then you can re-enable it again with this code: