washcookies

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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

Directories

Path Synopsis
Package config parses the text config file format for the washcookies tool.
Package config parses the text config file format for the washcookies tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL