Just blocking some internet with regex return empty response instead
Go to file
Michal Szczepanski 99f857c2b4
Update README.md
2019-09-13 02:46:35 +02:00
proxy Refactoring move methods to separate packages add optional arguments 2019-09-13 02:32:41 +02:00
.gitignore Refactoring move methods to separate packages add optional arguments 2019-09-13 02:32:41 +02:00
LICENSE Breaking some internet traffic for fun 2019-09-12 22:06:48 +02:00
README.md Update README.md 2019-09-13 02:46:35 +02:00
block.yaml Refactoring move methods to separate packages add optional arguments 2019-09-13 02:32:41 +02:00
main.go Refactoring move methods to separate packages add optional arguments 2019-09-13 02:32:41 +02:00

README.md

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