tor2web / Tor2web

Tor2web is an HTTP proxy software that enables access to Tor Hidden Services by mean of common web browsers
https://www.tor2web.org
GNU Affero General Public License v3.0
705 stars 176 forks source link

Blocklist cleartext loading method does not work #71

Closed fpietrosanti closed 12 years ago

fpietrosanti commented 12 years ago

Hi,

i was going to add a .onion site to the blocklist but i found that:

It seems that the loading does not work properly.

Here the procedure i followed:

Copy blocklist hashed to a backup file

root@tor2web:/home/tor2web/Tor2web-3.0/lists# cp blocklist_hashed.txt /tmp/

Edit blocklist cleartext and add onion site

root@tor2web:/home/tor2web/Tor2web-3.0/lists# vim blocklist_cleartext.txt

Restart tor2web

root@tor2web:/home/tor2web/Tor2web-3.0/lists# /etc/init.d/tor2web restart

root@tor2web:/home/tor2web/Tor2web-3.0/lists# diff blocklist_hashed.txt /tmp/blocklist_hashed.txt

As you can see it was not modified

Check if the .onion is still in the cleartext blocklist

root@tor2web:/home/tor2web/Tor2web-3.0/lists# cat blocklist_cleartext.txt root@tor2web:/home/tor2web/Tor2web-3.0/lists#

Those are the files in the directory: root@tor2web:/home/tor2web/Tor2web-3.0/lists# ls -la total 12 -rw-r--r-- 1 root root 0 2012-10-09 21:49 blocked_ua.txt -rw-r--r-- 1 root root 0 2012-10-09 21:49 exitnodelist.txt -rw-r--r-- 1 root root 1188 2012-10-15 14:28 blocklist_hashed.txt -rw-r--r-- 1 root root 0 2012-10-16 16:00 domains.txt -rw-r--r-- 1 root root 0 2012-10-18 08:22 blocklist_cleartext.txt

Now the block has been added manually to blocklist_hashed.txt .

evilaliv3 commented 12 years ago

fixed with commit: https://github.com/globaleaks/Tor2web-3.0/commit/c519d0b982f5ae7915c597869fd21804d49439a4