How to set a specific country in a tor browser

thumbnail that containing tor browser home page, lock icon and flags of UK, India, united states of america, Germany and Canada

Have you ever wanted to access a web page and a message like one of these appears on your device screen?
This video is not available in your country.
Sorry, Disney is not available in your country.
Unfortunately, this video is not available in Germany because it may contain music for GEMA has not granted the respective music rights.
This uploader has not made his video available in your country.
This item isn’t available in your country.
Currently BBC iPlayer TV programmes are available to play in the UK.
This content is not available in your region.


If you are familiar with these types of error messages that I mentioned above and you frequently visit these types of websites, you can have multiple tor browsers on your device, then configure each for a specific country.


Set a specific country in a tor browser can help you bypass some geo restrictions in your region. Geographic restriction is a technique used to block access to certain online services and it’s common in large companies such as: Netflix, Disney Plus, Xfinity, Hulu, Amazon Prime Video, HBO and YouTube.


This post provides information you need to configure tor browser to connect to a specific country and a list of countries that you can define.


How tor browser chooses exit nodes

By default, the Tor browser chooses random exit nodes from any country, but if you would like tor browser to connect to a specific country, you can modify the torrc file to make it possible.


To generate the configuration file, you must open the tor browser at least once. And, in order for tor browser to assign IP address from a specific country, you must modify the torrc file which is located in the folder \Desktop\Tor Browser\Browser\TorBrowser\Data\Tor.


How to enter a specific country and exit a specific country in tor browser

Open the torrc file with your text editor, then type the command below:
EntryNodes {CountryCode} StrictNodes 1
ExitNodes {CountryCode} StrictNodes 1


I recently published a post how to fix Xfinity connect to in-home WIFI to watch that solves a problem like this. The post has techniques that can help you solve these kinds of problems.


Enter the country code you want to use in parentheses. For example, if you only need the United States as EntryNodes and the Canada as ExitNodes, type:
EntryNodes {us} StrictNodes 1
ExitNodes {ca} StrictNodes 1


How to enter a specific country and exit to a random country in tor browser
EntryNodes {CountryCode} StrictNodes 1
ExitNodes {CountryCode} StrictNodes 0


How to enter to a random country and exit a specific country in tor browser
EntryNodes {CountryCode} StrictNodes 0
ExitNodes {CountryCode} StrictNodes 1

StrictNodes 1 to tell the tor browser to use only the country you define in parentheses.


You can visit the Wikipedia website to see the list of country codes.


If you want to get an idea of how tor relay is present on the map, visit tor map relay.


In another recent post that I published on this website; I provide all the steps to fix error 1020 access denied, which is an error that can appear on your browser when a firewall rule prevents your IP address from accessing a website.


How to specify a list of country in tor browser

To add a list of countries, add a comma after the parenthesis and add other parentheses.
EntryNodes {us} StrictNodes 1
ExitNodes {in},{uk},{de} StrictNodes 1


Now you will only have IP addresses in the countries you define in parentheses:
in is the country code of India.
uk is the country code of the United Kingdom of Great Britain and Northern Ireland.
de is the country code of Germany.


How to disable strict node in Tor Browser

If you want to disable strict node, write StrictNodes 0
When you deactivate the strict node, you indicate to the tor system that it can add other countries than the one defined in parentheses.


Note: Not all countries have Tor relays, but you can search to see if there is a tor relay in the country you want to use.


How to set a specific country in a tor browser


What To Read Next


If you like the content of this post or if it has been useful to you, please consider sharing it on your social media and follow me on Facebook and Twitter for more exclusive content.