Skip to content

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

License

Notifications You must be signed in to change notification settings

maxkulish/torblocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published