Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 413 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 413 Bytes

torblocker

Service collects Tor exit nodes and prepare conf format to block in NGINX

How to add to NGINX

To your nginx.conf add line

http {
  ...
  # blocked IPs
  include /etc/nginx/block/*.conf;
}

Create directory block

mkdir -p /etc/nginx/block/

Add crontab rule

*/5 * * * * curl --output /etc/nginx/block/tor.conf http://localhost:8091/