Tor browser country setting. How to make Tor work through IP addresses of a certain country? Using Tor Browser

Internet browser Tor is famous primarily for its anonymity. It encrypts and forwards traffic in such a way that it is almost impossible to determine where it is coming from. But for many users, even this degree of privacy is not enough, so they go even further. And for sure they will be interested how inTor choose country. Check out our article to understand this topic.

The "onion" system automatically determines the country acceptable to the user during installation and first start. Her choice is based on network connections, content prohibited level.

The default settings, in most cases, are preferable to custom ones, but no one forbids you to make changes to the system.

Change of geolocation

To change the country in the Tor browser, just use the following step-by-step instructions:

Don't worry if it takes longer to connect. The duration of the wait depends on the distance of the country from the project servers.

Conclusion

To change the country in the Tor Browser, you will have to climb into system files, but it's easy to make the necessary changes there. It is enough to follow our instructions and problems will bypass you. And to undo the changes, simply remove the previously added line from the document torrc.

Tor Browser via IP Addresses certain country.

Recently, a friend knocked on my door asking me to help her in a delicate matter. She wanted to win votes in some girl photo contest. I don’t understand at all who needs it, people have nothing to do. If I were to receive some prizes (which is also not entirely fair), as I understand it, but does a naive Runet user still not understand that participation in some contests or reposts in VKontakte with promising and flashy names like “Make a repost”, “Press the button I like”, “Spit over your right shoulder”, “And get a super duper Video card” or “ gaming mouse Razer Mamba" will give him the opportunity to get something for free?

Okay, something I got carried away. So, one of the conditions of the competition was that the voting people must be located on the territory of Russia. Those. IP addresses of users who vote must be from Russia. And she lives in Ukraine. I thought for the time being to throw her a list of the checked ones, and then using the Proxy Switcher program to solve this issue.

But then, after thinking a little, I decided to take a simpler path, nooo ... and not because she is a blonde, I really love women and blondes in particular :)! Just like, I'm a bit of a lazy person, looking for something easy. I decided, after finishing it a little, to throw her our beloved, slightly modified Tor Browser.

We wrote in detail about Tor in this article "". If you are not already familiar with this secure browser based on anonymous network, I recommend to read.

Tor operation through IP addresses of a certain country

The Tor network operates randomly, i.e. accesses the network through a constantly changing chain of nodes, and each time your computer is assigned a different IP address different countries. And we need only Russian!

So, how to configure Tor so that it always receives an IP of a certain strange one. To do this, we need, if you do not already have it. In the drop-down menu, you can select the interface language. There is also Russian!

Turn on Thor. If you see a green onion and the inscription "Connected to the Tor network" go ahead.

In the same window, click on the Settings button

In the window that appears, go to the Advanced tab. We press the button Edit current torrc. In the torrc editing window, at the very bottom, at the end, add the line ExitNodes (ru) . Put a tick Apply Selected and click OK

Now let's restart the browser. After launching Tor Browser from all possible IPs, it will select only Russian ip-addresses, and change only to Russian ones when the button is pressed Change identity.

Thus, you can customize the browser to your taste. For instance:

  • Work through any country
    ExitNodes (country code)
  • Work only through specified countries (several countries).
    ExitNodes (ua),(ug),(kp),(ru)
  • Block work through a specific country.
    ExcludeExitNodes (de)

Free download
Country codes for working with the Tor browser

Well, now you know how to make Tor work through the IP addresses of a certain country. Liked the article click on the button social network! And do not forget to subscribe to us on vkontakte, classmates, twitter and facebook, so as not to miss the news and be always up to date.

When downloading the browser, I left this daddy on my desktop

You need to go into it and select the folderBrowser =>TorBrowser =>Data =>Tor.





In this Tor daddy, we are only interested in the torrc file, you need to open it with a notepad and enter a command in it so that the output always has one or more countries that you need.


Since I do not need the whole world to work, but only one of our homeland, I changed the settings of my browser by entering the command in this way. I only added the last line. ExitNodes (ru) , it looks like this for me.


But this is if you need one country, and if you need several, then you need to write them separated by commas and always in such curly brackets. Next start on saving. In my case, ru is the designation of Russia. Designations and letter codes of the countries of the world can be taken on the Internet, I look at them on the website [link] in a column of 2 letters. Well, in order to select a specific city, you just need to click on the onion and then the cities will change only from the list of those countries that you need. In order to check the city that you have in this moment configured, you need to enter the command in the search bar of the browser [link] and set the browser to the desired city manually.


After entering the command and saving, the browser already works as it should.

And now not a lot about the minuses that I see in it for myself:

  • not all forums and sites allow entry from such a browser, (for example, you can’t deceive Flump in this way)
  • It works slowly, but this is due to the constant change of chain nodes
  • Sometimes the IP address changes too quickly and at the wrong time.
  • After updating the browser, you need to re-enter the logins and passwords of the pages on which you were currently visiting, enter mailbox For example

And yet I like this browser and I use it. It reveals many possibilities. And if I find out anything new about him, I will definitely let you know.

class="eliadunit">

Tor browser- a program for anonymous browsing on the Internet. Being on the Internet with this browser, the real IP address is replaced with another address inherent in another country and region. According to experienced observations, the choice of the country occurs at the new start of Tor randomly, and also after a while, being in it. In most cases, the choice of a specific country is not needed, but there are times when it is simply indispensable. For example, you need to go to a resource from a Russian-speaking country, or to a domain that is open to a certain state.

In such cases, there is a solution. After downloading and installing Tor (if it hasn't already been done), go toTorBrowser\ Browser\ TorBrowser\ Data\ Tor and find the file torrc.

To access the Internet from a specific country, or to prohibit specifying the IP address of one or more countries, the following text should be inserted with a replacement in this document.

class="eliadunit">

# If non-zero, try to write to disk less frequently than we would otherwise.
AvoidDiskWrites 1
# Store working data, state, keys, and caches here.
DataDirectory .\Data\Tor
GeoIPFile .\Data\Tor\geoip
# Where to send logging messages. Format is minSeverity[-maxSeverity]
# (stderr|stdout|syslog|file FILENAME).
log notice stdout
# Bind to this address to listen to connections from SOCKS-speaking
# applications.
SocksListenAddress 127.0.0.1
Socks Port 9150
Control Port 9151
ExitNodes
StrictExitNodes 1
ExitNodes (ua),(md), (az), (am), (ge), (kz), (kg), (ly), (lt), (tm), (uz), (ee).
StrictExitNodes(),().

Lines that will have to be individually edited: ExitNodes and StrictExitNodes.

ExitNodes("input nodes") - indicates from which countries entry is allowed.

StrictExitNodes("exact input nodes") - a parameter forbidding entry from the specified country.

In the example above, countries with Russian-speaking populations are printed, with the exception of Belarus and Russia. Countries must be specified in brackets, separated by commas. Designation of countries are indicated in the standard ISO 3166-1 alpha-2 (https://ru.wikipedia.org/wiki/ISO_3166-1), country domains are written in the same standard. Now let's take a look at some examples. For a ban Tor connections with Russian parameters you need in stock StrictExitNodes add { en}. With these parameters, Tor will connect with the parameters of any country except Russia. If you want to enter only from Russia, then you should specify { en} after ExitNodes.

It should be remembered! After updates, reinstallation, Tor browser torr file will change to default. Therefore, we copy it to a separate place before updating, or we go back to this site site and copy new code for this file.

This guide will teach you everything you need to know about using Tor country codes to spoof your location on Windows, Mac or Linux.


Tor is one of the most important tools for anonymous web surfing. Although it standard configuration great for hiding your web activity, you'll have to make some changes if you want your data to go through nodes in certain countries. This article will show you how to change Tor country codes on Windows, Mac and Linux.

Fortunately, this is not difficult to do. By the end of this guide, you will be able to send web traffic from Albania to Zambia from the comfort of your home.

Why you may need to change your country code in Tor?

When you start in normal mode, your web traffic enters the network at a random host, travels through many different relays, and travels from a randomly selected end host to its destination. This process helps to hide where the data comes from, thus giving anonymity to Internet users.

Nice, but there are also situations where users want their data to move through certain places. Some people want to fake their identity or location, which is where their data comes from.

For example, an activist in Guatemala might want their internet traffic to look like it's coming from someone who lives in Belgium to protect themselves and hide from the authorities. Similarly, a Cuban artist may impersonate a New Zealander to get around some government restrictions.

Changing country codes allows people in these situations to select the specific countries through which they want their data to be transferred. It is also absolutely no problem to change the settings, which means that anyone connected to the Internet can do it.

Disadvantages of using Tor country codes

If you select very specific countries, especially those that don't have a lot of Tor nodes, you won't be able to connect successfully. If you do succeed, the connection may be unstable and difficult to use. Usually, the more you restrict the choice of nodes, the worse your connection will be.

What's better? Tor country codes or VPN to spoof your location

Changing Tor country codes can be a great way to spoof your location, but it's not the only way, and it's not the best way in many situations. VPNs can be much more efficient for many different use cases.

If your priority is , and you don't want to trust a third party like a VPN provider, then Tor might be the best option for geo-spoofing. All this is certainly free, but is generally quite slow, and this a good choice for activism and related use cases.

If you want to fake your location so you can watch location-limited Netflix or something like that, for example, you should instead of the Tor network. The first reason is practical - your connection will be much faster through a reliable VPN.

The other main problem is that Tor network is an essential tool for many activists, dissidents, and others who need the anonymity provided by Tor for their own safety. Tor is already under a lot of stress because there aren't enough nodes for the amount of people who want to use it.

Many would consider this fact unethical if you were to cause even more strain on an already strained network, just so you could watch Game of Thrones. If that's the only reason you want to spoof your location, getting a VPN is your best bet.

How to change your country code in Tor on Windows, Mac or linux

The process for changing your country codes will be different for each system, but once you do this, the process for country coding is the same on all systems.

Let's start with Windows

The first step to changing country codes in Tor is to download and install

Hidden from guests

Before you start changing codes, you should make sure that you have launched Tor at least once. This leads to the appearance torrc file, which is needed to change the nodes through which Tor passes.

After the installation is complete, you will need to double click on the Tor icon to open the browser, then click "Connect" on the screen that appears. Once you connect, .torrc file will be available and you can move on to the rest of the process as follows.

Regular Tor users (and those new users who have just connected to Tor) can start by searching torrc file. To find him double click the Browser folder, then double click the TorBrowser folder inside it.

In the TorBrowser folder there is another folder called data. Double click on it. Here you will see another folder called Tor. Also double click on it. This will take you to torrc file:


Double click on torrc file to open it. In the window that appears, you will be asked to choose which program you want to open the file with. Select Notebook which will open the following window:
Having done this, you can proceed to the section

How to Change Country Codes on Mac

As with Windows, you'll need to make sure you've launched Tor at least once for it to appear. .torrc file. If you haven't already, download Tor Browser and install it. Once configured, open your browser and click "Connect".

Once Tor is connected at least once, you will need to find .torrc file. First go to the tab "Jump", then press "Go to menu" which appears in the submenu:


Find Tor folder with the following address:
Once you are inside the folder, look for .torrc file. Double click on it, then select TextEdit from options "Open with" (Open With):
This will open the following file:
From now on, you can proceed to the section "Entering Tor Country Codes" in a text editor.

How to change country codes in Linux

Before you begin, you will need to set up Tor and run it at least once. You can download

Hidden from guests

From the Tor Project website and then run the installation. Open a browser, then click "Connect" to display torrc file.

Once this is done, you can find .torrc file by opening the folder Tor Browser, then navigating from subfolder Browser v TorBrowser, then in Browser and finally to the folder Tor.

Open .torrc file in a regular text editor to move on to the next step. Here you can add the required country codes. It will look something like the Notepad and TextEdit files shown in Windows partitions and Mac above, respectively. Once you have done this, you can move on to the next section.

Entering country codes Tor in a text editor

Now that you've opened the file (on Windows, Mac, or Linux), it's time to find the entry and exit nodes you'd like to use in Tor. Follow the following link to

Hidden from guests

To find the codes for the countries through which you want to connect. Each country code consists of two letters in brackets ():


As an example, the country code for Argentina is ar, and for Bangladesh - bd. In this guide, we will use the Netherlands (nl), Germany (de), USA (us), Singapore (sg), and Australia (au) as entry and exit nodes. For other country codes, scroll to the page above.

Once you've found the country codes you're looking for, go back to Notepad (Windows), Text Edit (Mac), or whatever text editor you've been using (if you're changing country codes on Linux). ) that we discovered earlier. Left-click under the last line of text and type the following (including spaces after "EntryNodes" and "ExitNodes", but no spaces between each country code):

EntryNodes (nl),(de),(us),(au),(sg) ExitNodes (nl),(de),(us),(au),(sg)

The code Entry Nodes defines which login nodes you want to use in Tor. The code ExitNodes does the same, but for output nodes. Be aware that with these settings, Tor can still use nodes in other countries between entry and exit.

If Tor fails to connect properly using any of the specified entry and exit nodes, it will fall back to other nodes, which can cause your data to travel through locations you don't want.

See the section at the end of the article if you want to see other options. These include codes that can be used to exclude nodes, and those that can force Tor to only use certain nodes, even if it means the connection will fail otherwise.

On Windows it looks like this:


Or like this on a Mac:
Don't forget to replace (nl), (de), (us), (au), and (sg) with the country codes of your choice.

When you're done with your selections, do the following:

  • On Windows - click "File" in the top left corner "Notepad" then "Save as". In the window that appears, go to the option "File type" below and select "All files". Then click on torrc file, then press "Save" and "Yes":
  • Mac- press simultaneously command and S to save the file, then close it .
  • linux- save the file as usual (this will depend on which text editor you're using).
Now that you have changed and saved .torrc file, run Tor browser. Go to the site of your choice. In this case, we will go to Wikipedia. To the left of the URL you will see a small icon with a circle i:
Click on it to see the scheme your connection establishes. If you've done everything right and Tor can connect through the selected countries, you'll see that your traffic is using your chosen entry and exit nodes. In this case, the Tor connection goes through Germany and the Netherlands.

As you can see, changing country codes in Tor is a fairly simple process, making it easy to spoof your location. In the settings above, you can select any nodes you like, and Tor will ideally send your traffic through these entry and exit nodes. If it cannot establish a stable connection using them, it will fall back to using other nodes.

Other Useful Tor Country Codes

Applying the above settings is not ideal for every use case. In some situations, it may be better to exclude nodes you don't want to use rather than install nodes you want to include. For example, you might want to exclude only exit nodes in the United States.

Node exclusion

To do this, follow the same process as above, but instead of using the codes Entry Nodes and ExitNodes from the previous ones, use ExcludeExitNodes. You must enter the following in .torrc file in Notepad:

ExcludeExitNodes (us)

If you want to exclude multiple output nodes, you just need to separate them with commas, as we did before. In other situations, you may want to exclude certain nodes from being used as entry points, exit points, or anywhere in between. To do this, you use the ExcludeNodes code in the same way:

ExcludeNodes (us) StrictNodes

Using the codes above, you will still run into the problem that Tor may revert to using excluded hosts if it cannot establish a stable connection in any other way. If you prefer not to connect at all instead of connecting through certain locations, you need to add the code StrictNodes. You can place it under any of the codes mentioned above.

If for the parameter StrictNodes set value 1 , Tor will only connect through the nodes you specify (and avoid those you have excluded). If it cannot connect successfully through these specified nodes, it will not be able to return to the nodes that were excluded.

If for the parameter StrictNodes set value 0 , Tor will avoid excluded hosts whenever possible. If it cannot establish a stable connection on the allowed nodes, it will fall back to other nodes to work properly.

You can customize StrictNodes by entering any of the other codes we mentioned above ( EntryNodes, ExitNodes, ExcludeExitNodes, ExcludeNodes), v .torrc file in Notepad and then select any country code you choose to include or exclude.

Then you type StrictNodes v next line with meaning 1 if you want only certain hosts to be used, even if it causes connection failures. If you'd rather have Tor stay connected, even if it means using unwanted hosts, type 0 .

For example, if you absolutely do not want Tor to use any nodes located in the United States, you would enter the following:

ExcludeNodes (us) StrictNodes 1

Tor's country code options are flexible, allowing you to connect in any way that suits your goals and risk profile. Some users will appreciate being able to stay connected no matter which hosts are used, while others may be concerned about their security if their traffic passes through certain locations. Luckily, you can easily customize Tor to suit your needs.

Hidden from guests