Tor is a network of virtual tunnels that allows you to improve your privacy and security on the Internet. Tor works by sending your traffic through three random servers (also known as relays) in the Tor network. The last relay in the circuit (the "exit relay") then sends the traffic out onto the public Internet.
Tor Browser uses the Tor network to protect your privacy and anonymity
The exit node is where your web traffic exits the Tor network and is directed to its final destination. Tor Browser typically selects exit nodes randomly for internet browsing. However, there are scenarios where using specific exit nodes is necessary such as for testing, research, or accessing content from a particular country or region.
The exit node cannot view your IP address but can identify the site it is connecting to.
The core Tor configuration file is called torrc, It can be found at
Windows: C:\Users<YourUsername>\AppData\Roaming\Tor\torrc
macOS/Linux: /etc/tor/torrc or ~/.tor/torrc
If you changed the installation directory when installing then check the directory where you installed it
To Modify the torrc, just add the lines :
Replace {ua}
with Country of your choice
StrictNodes 0 - Tor will prefer to use the specified nodes but will connect to others if necessary to maintain the connection.
StrictNodes 1 -This means Tor will not connect to any nodes outside the ones specified.
You can also add multiple Countries by placing them after a comma.
If you have a specific IP Address for exit node then you can use it in the same manner.
You can also use this as a security measure by configuring Tor to completely avoid certain exit nodes.
Exclude the mentioned Country Code from using as Exit Node
Exclude the mentioned Country Codes from using as any kind of Nodes
Check References.md.