| Current Path : /opt/nginxhttpd_/etc/openresty_config/utils/ |
| Current File : //opt/nginxhttpd_/etc/openresty_config/utils/tor-exit-list-map.sh |
#!/bin/bash
TOR_EXIT_NODE="https://check.torproject.org/torbulkexitlist"
#echo '# Source: ' $TOR_EXIT_NODE
#echo 'geo $remote_addr $map_tor {'
#echo 'default 0;'
curl -sX GET -o - $TOR_EXIT_NODE 2> /dev/null | while read ip ; do
echo "$ip 1;"
done | grep -E '^([0-9]+\.){3}[0-9]+ 1;$' | column -t
#echo '}';