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

When does snitch_map get cleaned up? #990

Closed
alexristich opened this issue Nov 15, 2016 · 1 comment
Closed

When does snitch_map get cleaned up? #990

alexristich opened this issue Nov 15, 2016 · 1 comment
Labels
heuristic Badger's core learning-what-to-block functionality question Further information is requested

Comments

@alexristich
Copy link
Contributor

Looking through the code, it's not obvious when (if ever) snitch_map gets cleaned up after "promoting" a tracker to the block heuristic action in action_map. It must be getting cleaned up somehow, as snitch_map is significantly shorter than action_map, so it appears there is some culling taking place at some point.

@alexristich
Copy link
Contributor Author

@cooperq As discussed, here is my understanding of snitch_map. If any of this is incorrect let me know!

The current behavior of snitch_map is to store all the domains where a third party tracker is detected. A heuristic action will only be generated for trackers that are detected on at least 3 separate TLDs, with 3 being the current threshold set in the code base.

Information is not cleared from snitch_map when a heuristic action is set for the corresponding entry in action_map, as the unique set of domains may be useful in the future for enhancements to the statistics and deep-dive analytics that might be provided to power users.

action_map is significantly larger than snitch_map because it includes everything from snitch_map, along with all domains in the cookieblock list, all DNT-compliant sites, etc.

@ghostwords ghostwords added heuristic Badger's core learning-what-to-block functionality question Further information is requested labels Mar 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
heuristic Badger's core learning-what-to-block functionality question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants