Tor browser: specify a country node
Posted: 2024-03-31 Filed under: network | Tags: exit, node, tor, tor-browser Leave a commentI visit an old, Linux-dedicated forum, that sometimes does not like comments from users with a foreign IP address, due to its outdated engine or something. In order to post, I often need to prove that I am not a robot, via captcha. Well, I am not a robot and this happens only occasionally, but it’s still annoying. Therefore, I decided to find out whether I can use the Tor Browser with a pre-specified country for the exit node.
I googled a bit and found the solution here. You need to know the country code you need, and this is a good place to find it. In my case, it’s Bulgaria, so I should use: bg
.
Go to Tor Browser’s folder and open TorBrowser/Data/Tor/torrc
. I have the folder in /opt
and modified torrc
as follows:
# This file was generated by Tor; if you edit it, comments will not be preserved # The old torrc file was renamed to torrc.orig.1, and Tor will ignore it ClientOnionAuthDir /opt/tor-browser/Browser/TorBrowser/Data/Tor/onion-auth DataDirectory /opt/tor-browser/Browser/TorBrowser/Data/Tor DisableNetwork 1 ExitNodes {bg} StrictNodes 1 GeoIPFile /opt/tor-browser/Browser/TorBrowser/Data/Tor/geoip GeoIPv6File /opt/tor-browser/Browser/TorBrowser/Data/Tor/geoip6
Setting StrictNodes 0
will ensure that the Browser can still use other countries’ codes if the one specified does not work. Similarly, you can have EntryNodes {}
.