This function is called when a target (like a URL or file) is checked to see if it should be checked by the link checker.

$olclc_check - (integer) whether the link can be checked (1 means yes, 0 means no); it is preset to the default after checking the "check only these links" strings and "don't check these links" setting; changing it will override the default and a link can be otherwise checked or not checked

$olclc_link - the full string of the link (as an absolute link)

These $olclc array variables can be assigned to override defaults:

$olclc.useragent - the user agent used to check the link (New v12.0104)

Example 1:

This example overrides the default user agent for links containing ''. Some servers may be configured to return an error code if the user agent is not one that it allows, so you may want to change the user agent used for requests to these servers.

function onLinkCanLinkCheck() {
 if stripos($olclc_link,'')>=0 {
  $olclc.useragent="Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)";