Simple application to block requests from TOR network.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Dockerfile
LICENSE
Makefile
README.md
blocktor.go
ca-certificates.crt

README.md

Blocktor

Simple application to block requests from TOR network, based from https://check.torproject.org/ and iptables rules.

Compile

$ git clone https://github.com/paulopinda/blocktor.git
$ cd blocktor
$ go build *.go

How to use

Load list of all Tor exit nodes from the past 16 hours that can contact xxx.xxx.xxx.xxx on port 80 and 443 and block.

$ sudo ./blocktor -address xxx.xxx.xxx.xxx

Load script with initials rules.

$ sudo ./blocktor -address xxx.xxx.xxx.xxx -initial-rules ./init.sh # default is ./rules.sh