-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add option to not consider redirects as a successful match #22
Comments
Could you provide an example of a false matching URL for this, please? Per the code, only 200's should match: From https://github.com/jkingsman/bishop/blob/master/src/js/content_script/content_script.js#L148: if (req.status == 200) {
if (pattern.test(req.responseText)) {
addSiteAndAlert(url, ruleName);
}
return false;
} |
I can't give the URL because it's an internal company URL. I opened the dev console, switched to the network tab, went to internal.companywebsite.com/tool/cgi-bin, and it redirected with a 302 to internal.companywebsite.com/tool/prod, which is what it does for all URLs. |
Hm; interesting. I'll do my best to replicate that then. Thanks for the info.
|
I think I found the issue: https://stackoverflow.com/questions/8238727/how-to-prevent-ajax-requests-to-follow-redirects-using-jquery So you'll never see a redirect with an |
Intriguing; good sleuthing. Not sure if there's a way around that, then. |
I've had multiple false positives because of sites that redirect URLs that don't exist to some default page. There should be an option to not consider redirects (status codes 301/302) to be successful rule matches.
The text was updated successfully, but these errors were encountered: