Before starting this tutorial, here’s what you need to know:

Geofencing on Tor (or banning specific fingerprints ect…) is for very specific usages. For example, i’m in Japan and I obvously want, to avoid Japan Internet blocking rules, then I block all Japan relays.

Step 1: Edit torrc file

  • sudo nano /etc/tor/torrc

Step 2: Add theses lines

You can also only block exit-nodes, if you don’t want to apply theses rules on guard and relay nodes with:

Step 3: Save & restart Tor

  • sudo service tor restart
After theses settings were applied, all relays from your wishes will be blocked at the guard, relay and exit node level.