Created
August 29, 2020 10:07
-
-
Save positiveque/933900eef5d3f2bae831b40b2cdd3411 to your computer and use it in GitHub Desktop.
How To Block Tor Exit-Nodes with Nginx (deny-list)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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