linkinator
linkinator copied to clipboard
Excluding external URLs
Hello,
is there a way to skip external URLs? Filtering with a regex such as ^(https?://)
doesn't work, since it will match all URLs (see #382 for more information)
I'm running linkinator on the local file system, and I'd like to skip all external links, and explicit links to localhost too.
have you tried?
--include, -i
List of urls in regexy form to include. The opposite of --skip.
Couldn't try it, but I assume the behavior will be the same (just negated) so it won't solve the issue.
Per https://github.com/JustinBeckwith/linkinator/issues/382#issuecomment-1120352377:
Heh, so this is a kind of funny problem. Linkinator works by mounting the local folder you're scanning as a static HTTP server, so most likely all links are getting picked up by this regex.