File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
apt-get --yes install nginx-extras
6
6
apt-get --yes install luarocks
7
+ apt-get --yes install curl
7
8
luarocks install onion2web
8
9
9
10
cp example.nginx /etc/nginx/nginx.conf
@@ -18,3 +19,8 @@ chmod +x install-tor2web
18
19
./install-tor2web
19
20
20
21
service nginx restart
22
+
23
+ curl " https://raw.githubusercontent.com/globaleaks/Tor2web/b6ead9ffeaa0d52cc70b4bc9d82a9bbea45b94e0/lists/blocklist_hashed.txt" > /etc/blocklist-tor2web.txt
24
+ cp update-blocklist.sh /etc/cron.daily/update-blocklist.sh
25
+ chmod +x /etc/cron.daily/update-blocklist.sh
26
+ /etc/cron.daily/update-blocklist.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -xue
4
+
5
+ curl https://ahmia.fi/blacklist/banned/ | egrep -o ' [0-9a-f]{32}' > /etc/blocklist-ahmia.txt
6
+ cat /etc/blocklist-* .txt > /etc/blocklist.txt
7
+
8
+ service nginx reload
You can’t perform that action at this time.
0 commit comments