Configure Tor to use a specific country as an exit node

Martin Brinkmann
Jan 29, 2008
Updated • Nov 9, 2017

Many Internet services offer access to their services only if you are visiting the websites or applications from certain countries.

System IP addresses and sometimes additional information such as the system time, are checked when a user wants to access a country restricted service. If the IP is located in an allowed country access is allowed, otherwise it is rejected.

Many workarounds exist that help users access these restricted services even if they are currently residing in a different country. This articles look at how you can configure the anonymization client Tor to have the exit node of the network in a specific country.

Tor offers lots of so called nodes which are servers in a specific country running the Tor software. If you just run the software, an exit node is picked for you automatically. What most users don't know is that it is possible to customize the selection.

I'm using Vidalia, a package that contains all necessary programs, to explain how a specific country can be selected when using Tor. Note that it is included as part of the Tor Browser which you can download here.

Download The Tor browser and install/run the software afterwards. The main program interface looks like the one on the screenshot below when you run Vidalia for the first time.

The control panel displays the current status of Tor. Additional information is displayed which we are going to use to find servers located in the country that we need an IP address from. A click on view the network displays a visual representation of all Tor servers but only if Tor is running.

Servers can be sorted by country flag and do have a performance indicators next to them as well. Write down some server names with the best performance and leave the menu again. We need to add those servers as exit nodes to the Tor configuration. A click on Settings and there on the advanced tab displays a menu where you find the entry Tor Configuration Menu.

A click on browse opens the browse for files dialog. Left-click on the file "torrc" and choose edit from that menu. Now add the following two lines to the configuration, just paste it at the beginning for instance:

ExitNodes server1, server2, server3
StrictExitNodes 1

Replace server1, server 2 and so on with the server names that you have written down in the network display window. Stop and restart Tor afterwards and the changes should have been made.

Note: the following step is not required if you are using the Tor Browser bundle directly. If you plan to use a different browser, it needs to be made.

Now we have to add a http proxy to our browser. Firefox users click on Tools > Options > Advanced Network and there on the button Settings. Select Manual Proxy Configuration and enter localhost and port 8118 there.

You can test if everything is working fine by visiting my IP lookup script which should display a IP from the country that you have selected the servers from.

Configure Tor to use a specific country as an exit node
Article Name
Configure Tor to use a specific country as an exit node
How to configure Tor to only use select exit nodes that you specify and not all exit nodes the anonymity service offers.
Ghacks Technology News

Tutorials & Tips

Previous Post: «
Next Post: «


  1. ilev said on August 4, 2012 at 7:53 pm

    Doesn’t Windows 8 know that www. or http:// are passe ?

    1. Martin Brinkmann said on August 4, 2012 at 7:57 pm

      Well it is a bit difficulty to distinguish between domains and files for instance.

    2. Leonidas Burton said on September 4, 2023 at 4:51 am

      I know a service made by google that is similar to Google bookmarks.

  2. VioletMoon said on August 16, 2023 at 5:26 pm

    @Ashwin–Thankful you delighted my comment; who knows how many “gamers” would have disagreed!

  3. Karl said on August 17, 2023 at 10:36 pm


    The comments section under this very article (3 comments) is identical to the comments section found under the following article:

    Not sure what the issue is, but have seen this issue under some other articles recently but did not report it back then.

  4. Anonymous said on August 25, 2023 at 11:44 am

    Omg a badge!!!
    Some tangible reward lmao.

    It sucks that redditors are going to love the fuck out of it too.

  5. Scroogled said on August 25, 2023 at 10:57 pm

    With the cloud, there is no such thing as unlimited storage or privacy. Stop relying on these tech scums. Purchase your own hardware and develop your own solutions.

    1. lollmaoeven said on August 27, 2023 at 6:24 am

      This is a certified reddit cringe moment. Hilarious how the article’s author tries to dress it up like it’s anything more than a png for doing the reddit corporation’s moderation work for free (or for bribes from companies and political groups)

  6. El Duderino said on August 25, 2023 at 11:14 pm

    Almost al unlmited services have a real limit.

    And this comment is written on the dropbox article from August 25, 2023.

  7. John G. said on August 26, 2023 at 1:29 am

    First comment > @ilev said on August 4, 2012 at 7:53 pm

    For the God’s sake, fix the comments soon please! :[

  8. Kalmly said on August 26, 2023 at 4:42 pm

    Yes. Please. Fix the comments.

  9. Kim Schmidt said on September 3, 2023 at 3:42 pm

    With Google Chrome, it’s only been 1,500 for some time now.

    Anyone who wants to force me in such a way into buying something that I can get elsewhere for free will certainly never see a single dime from my side. I don’t even know how stupid their marketing department is to impose these limits on users instead of offering a valuable product to the paying faction. But they don’t. Even if you pay, you get something that is also available for free elsewhere.

    The algorithm has also become less and less savvy in terms of e.g. English/German translations. It used to be that the bot could sort of sense what you were trying to say and put it into different colloquialisms, which was even fun because it was like, “I know what you’re trying to say here, how about…” Now it’s in parts too stupid to translate the simplest sentences correctly, and the suggestions it makes are at times as moronic as those made by Google Translations.

    If this is a deep-learning AI that learns from users’ translations and the phrases they choose most often – which, by the way, is a valuable, moneys worthwhile contribution of every free user to this project: They invest their time and texts, thereby providing the necessary data for the AI to do the thing as nicely as they brag about it in the first place – alas, the more unprofessional users discovered the translator, the worse the language of this deep-learning bot has become, the greater the aggregate of linguistically illiterate users has become, and the worse the language of this deep-learning bot has become, as it now learns the drivel of every Tom, Dick and Harry out there, which is why I now get their Mickey Mouse language as suggestions: the inane language of people who can barely spell the alphabet, it seems.

    And as a thank you for our time and effort in helping them and their AI learn, they’ve lowered the limit from what was once 5,000 to now 1,500…? A big “fuck off” from here for that! Not a brass farthing from me for this attitude and behaviour, not in a hundred years.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.