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

excludeFromSpider in Spider class does not seem to exclude URL #11

Open
petermartin2002 opened this issue Jun 14, 2018 · 0 comments
Open

Comments

@petermartin2002
Copy link

petermartin2002 commented Jun 14, 2018

Hi

I am looking again at the zap java api. And I am writing a regex to exclude jpg, png and gif paths from the spider.

    zapSpider.excludeFromSpider("\\.(?!(jpg|png|gif)$)[a-z]+$");
    zapSpider.spider(myApp.BASE_URL);
    int spiderID = zapSpider.getLastSpiderScanId();

I am wondering if there have been any issues encountered with the regxing previously and if the regex I am giving is valid?

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

1 participant