blocking-http-proxy

command module
v0.0.0-...-99f857c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 6 Imported by: 0

README

blocking-http-proxy

Description

Just blocking stuff that is in block.yaml
This code might be a bit ulgy cause it's my first code in golang and I know it but it works with http/https traffic and is keeping me away from unwanted websites that try to save data to my computer.

Install

go build main.go

Usage

./main

By default point your computer http/https traffic to localhost port 11666 open browser and cry You can type optional arguments:

Arguments:

  -h  --help   Print help information
      --host   host
      --port   port
      --block  YAML block file

So it can be used like this

./main --host 0.0.0.0 --port 6666 --block block.yaml

Requests are logged to file block.log (for blocked requests) and allow.log (for allowed ones)

Tips

Wanna go to facebook - remove last line in block.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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