Prune all cookies not from whitelisted servers
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
COPYING
prune_cookies.py
readme.md

readme.md

Browser cookie whitelist pruner

This script removes all cookies from Firefox browser cache that are not coming from the given whitelist.

To use, create a file called preserved_host_suffixes.txt with the list of hosts you want preserved, one per line. Like this:

your_chat_website.com
work_email_site.com

Then shut down Firefox and run the script:

./prune_cookies.py

After this every cookie whose hostname does not end with an entry in the file is deleted. This means that, for example, cookies from foo.your_chat_server.com are preserved, but those from foobar.com are deleted.