goproxy-no-reddit-at-worktime

command
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2016 License: BSD-3-Clause, Apache-2.0 Imports: 4 Imported by: 0

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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