-
Notifications
You must be signed in to change notification settings - Fork 26
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
block domains instead of prefixes #78
Comments
thanks for raising the issue! using
if we were to change the matching semantics, i think we'd need to have a think about how we can efficiently do the fuzzy hostname matches. |
Thanks @jacobbednarz the performance impact is very high, thinking about this, could we try to match just the domain removing the path and then using In my filters list I have only domains, I don't know if there is also a use case where you need to manage paths. In such case could we add a specific file to ignore just domains? Instead of a list like: https://ssl.google-analytics.com I could use: google-analytics.com Instead of 11 lines I need only 6 lines, but I don't know if the raw performance of |
Hi @jacobbednarz I've used for the last months my fork of your project: master...lorello:go-csp-collector:master |
i'm happy to review a PR for it. we can address some of the error handling improvements and documentation in that PR. |
I really appreciate this small software, I like to add my 2 cents on configuration of filter.txt file.
I need to ignore URLs like:
Probably an antivirus trying to access the webpage for some security check.
Instead of multiply the lines in the configuration file for each subdomain used by the software house, I'd like to ignore the domain kaspersky-labs.com entirely.
I'm not a developer but I think I could change this line:
go-csp-collector/internal/handler/csp.go
Line 128 in bc93b09
and use
strings.Contains
instad ofstrings.HasPrefix
, if you think is an acceptable change I'll try to arrange a PR for this.The text was updated successfully, but these errors were encountered: