Documentation ¶
Overview ¶
Program washcookies cleans up browser cookies based on a policy.
Edit stored web cookies to discard any cookies not permitted by a user-specified policy. A policy consists of three types of rules: Allow, Deny, and Keep.
If a cookie is matched by any Keep rule, it is explicitly retained. Otherwise, if any Deny rule matches the cookie, it is discarded. Otherwise, if no Allow rule matches the cookie, it is discarded.
For a description of the configuration file format, see
https://godoc.org/github.com/creachadair/cookies/cmd/washcookies/config
Examples ¶
Accept all cookies from host names ending in "banksite.com":
- .banksite.com
Reject all Google Analytics cookies:
- name~^__utm[abvz]$
Accept cookies from somehost.com, but not "foo.somehost.com":
- .somehost.com domain!=foo.somehost.com
Click to show internal directories.
Click to hide internal directories.