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

filter by file #7

Open
jimpriest opened this issue Sep 1, 2015 · 2 comments
Open

filter by file #7

jimpriest opened this issue Sep 1, 2015 · 2 comments
Milestone

Comments

@jimpriest
Copy link

There is IGNORED_PREFIXES but I need to filter a particular file out of the results...

All our WordPress blogs include http://my.domain/xmlrpc.php which always returns a 405.

Would it be possible to add another flag, or maybe make make the current "ignore" more flexible (regex maybe)?

I'm going to dig into the code but figured you may have a quick solution.

@bartdag
Copy link
Owner

bartdag commented Sep 1, 2015

ignored prefixes makes it super easy to block entire sections of sites, but it makes sense to add two new params: include_only (regex) and exclude (regex).

These parameters are relatively easy to add and would be used here:

for ignored_prefix in self.ignored_prefixes:

@bartdag bartdag added this to the 0.4 milestone Sep 1, 2015
@jimpriest
Copy link
Author

OK - I was just looking at the same spot (I must be learning something!)

I'm looking for exclude which seems straightforward - if the regex matches - return false.

Include only would really be the inverse.

I may take a stab at hacking on this today if I have time.

jimpriest pushed a commit to jimpriest/pylinkvalidator that referenced this issue Sep 1, 2015
This was referenced Sep 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants