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

Option to limit urls to same domain #379

Open
robd003 opened this issue Apr 19, 2024 · 3 comments
Open

Option to limit urls to same domain #379

robd003 opened this issue Apr 19, 2024 · 3 comments
Labels
question Further information is requested

Comments

@robd003
Copy link

robd003 commented Apr 19, 2024

It would be really great to have a --same-domain option that would only follow links under the same top level domain as the URL provided to muffet

I'm assuming most people just want to check their own website and don't necessarily want veer left into the rabbit hole of https://twitter.com/{username} or any other external links.

@raviqqe
Copy link
Owner

raviqqe commented Apr 19, 2024

Did you try --include option?

@robd003
Copy link
Author

robd003 commented Apr 20, 2024

I've tried using --include domain.com but this will also include references to 3rd party sites like LinkedIn / Twitter if they have a share reference to the domain

I also tried a more involved regex --include ''https?://([a-zA-Z0-9-]+\.)?domain\.com' but it would be great to have an easy option instead of having to figure out the regex each time

@jippi
Copy link

jippi commented Jun 4, 2024

I was coming here to ask basically the same thing :)

include can totally do it for me, but would be nice to just have --only-same-domain or similar flag, that would pick the host from the baseurl you pass in to muffet, configure the regex for me and then runs with it, leaving --include to be mostly 3rd party domains (which I thought it was by default, until I realised the muffet by default scans external URLs by default)

@raviqqe raviqqe added the question Further information is requested label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants