Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding external URLs #523

Open
danieleds opened this issue Oct 4, 2022 · 2 comments
Open

Excluding external URLs #523

danieleds opened this issue Oct 4, 2022 · 2 comments

Comments

@danieleds
Copy link

danieleds commented Oct 4, 2022

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.

@sebawita
Copy link

have you tried?

--include, -i
        List of urls in regexy form to include.  The opposite of --skip.

@danieleds
Copy link
Author

danieleds commented Dec 15, 2022

Couldn't try it, but I assume the behavior will be the same (just negated) so it won't solve the issue.

Per #382 (comment):

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants