How to Change Tor Browser Country Configuration
Are you looking to customize the Tor Browser country configuration ? This guide will walk you through the steps to modify the Tor Browser’s settings to suit your needs.
Step 1: Locate the Tor Configuration File
Before you can make changes to the Tor Browser’s settings, you need to find the torrc file, which holds the configuration options.
Use the Default Installation Path
For most Windows installations, the Tor configuration file is located in:
C:\Users\\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor
Use the Command Prompt
If you’re unsure where Tor is installed, you can use the where command:
where /R C:\ tor.exe
This command will display the full path to the tor.exe file. Navigate to the directory containing torrc based on the output.
Step 2: Open and Edit the torrc File
Once you locate the torrc file, follow these steps:
- Open the file in a text editor (e.g., Notepad or any code editor).
- Add the following lines — each option goes on its own line;
torrcdoesn't allow combining two options on one line:
ExitNodes {CA}
StrictNodes 1
Replace CA with the two-letter country code of your choice (e.g., US for the United States). ExitNodes is what actually determines which country your traffic appears to come from — that's normally the only option you need.
Save and close the file.
Important Notes:
- Run Tor at least once: If it’s your first time using Tor, start it once to ensure the necessary files are created.
- Close Tor before editing: Ensure Tor is not running while editing
torrcto avoid conflicts. - Don't also restrict
EntryNodes: some guides suggest pinning your entry guard by country too. The Tor Project specifically advises against this — restricting your entry guard shrinks your anonymity set and can make you more identifiable, with no real benefit for the common goal of "appear to browse from country X."ExitNodesalone covers that. StrictNodes 1can break connectivity: if too few relays exist in the country you picked, Tor may fail to build circuits at all. If Tor Browser won't connect after this change, try a larger/more common country, or dropStrictNodes 1so Tor falls back to other countries when it has to.- Anonymity considerations, generally: the Tor Project's guidance is to leave route selection to Tor whenever possible. Restricting nodes by country reduces your anonymity set — use it deliberately for a specific need, not as a default habit.
Step 3: Restart Tor Browser
After editing the torrc file:
- Start the Tor Browser.
- Verify the changes by checking your exit node’s IP location. Use an IP lookup tool to confirm.