Skip to content

Instantly share code, notes, and snippets.

@positiveque
Created August 29, 2020 10:07
Show Gist options
  • Select an option

  • Save positiveque/933900eef5d3f2bae831b40b2cdd3411 to your computer and use it in GitHub Desktop.

Select an option

Save positiveque/933900eef5d3f2bae831b40b2cdd3411 to your computer and use it in GitHub Desktop.
How To Block Tor Exit-Nodes with Nginx (deny-list)
#!/bin/sh
wget -qO- https://check.torproject.org/torbulkexitlist | sort | sed "s/^/deny /g;" > /etc/nginx/conf.d/deny-tor.conf
systemctl nginx reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment