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.
Failed to load latest commit information.

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:

Then shut down Firefox and run the script:


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