package
0.0.0-20190513173959-f8dc2d7ba04e
Repository: https://github.com/coreos/goproxy.git
Documentation: pkg.go.dev
# README
Request Filtering
goproxy-no-reddit-at-work
starts an HTTP proxy on :8080. It denies requests
to "www.reddit.com" made between 8am to 5pm inclusive, local time.
Start it in one shell:
$ goproxy-no-reddit-at-work
Fetch reddit in another:
$ http_proxy=http://127.0.0.1:8080 wget -O - http://www.reddit.com
--2015-04-11 16:59:01-- http://www.reddit.com/
Connecting to 127.0.0.1:8080... connected.
Proxy request sent, awaiting response... 403 Forbidden
2015-04-11 16:59:01 ERROR 403: Forbidden.