How to Configure Google Chrome for Tor
With firefox practically pioneering open source browser technology, it's no surprise that there's a turn-key package for tor browsing in firefox. But I like google chrome or chromium and there's no tor add-on. Not to worry, it's fairly easy to make yourself. Below are 3 completely different ways to get chrome working with tor:
Method 1 - Configure on Launch (best)
This is the best option for a couple reasons: it's easy to setup and it protects the most data. All you need to do is run the following command from terminal:
This command line:
- tells chrome to load using proxy settings
- ensures http, https, socks, socksv4 and sockv5 all use localhost port 8118 (127.0.0.1:8118)
- loads incognito
- goes to http://check.torproject.org for verification
You can substitute any homepage you wish for check.torproject.org but it's nice to have positive verification on load. You may also remove the --incognito option but I recommend you do not. Incognito ensures your cookies are not seen by visited websites (cookies easily show the website who you are).
If you don't want to remember that command, simply create a launcher and stick it in the Applications > Internet menu next to chrome:
Just remember that, using this method, you must close all instances of chrome before launching with tor. If you already have chrome open, the open application's settings will override the tor launch.
Method 2 - Switchy! extension (ok)
This method involves adding the Proxy Switchy! extension to chrome and configuring it for tor/non-tor browsing. It's good because it allows you to turn tor on and off with the push of a button, but is bad because it doesn't hide your cookie data.
To configure, visit the Proxy Switchy! extension page and install to chrome. After install, open the extension's settings page and configure to speak with tor/polipo.
Create a profile and name it tor. Configure this profile to use proxy 127.0.0.1 port 8118 for all protocols. Your settings should look like the image above when finished. Now move to the General tab and enable Quick Switch and Binary Switch. I have my default settings as Profile 1 and my Tor settings as Profile 2. Just hit the extension image in your toolbar to switch back and forth.
Make sure you visit check.torproject.org to ensure it's working!
Method 3 - Proxy Location (worst)
This is another easy method but not my favourite, as it requires a manual switch from non-tor to tor (each time) and it doesn't protect your cookie information. For this method, we will create two profiles (or "locations" as chrome calls them) and tell one to use tor, and the other to use a direct connection.
Tools > Preferences > Under the Hood will get you to the Network settings. Open Change Proxy Settings and select New Location from the Location drop-down menu.
Select Manual proxy and add proxy 127.0.0.1 and port 8118. Select the checkbox asking if you want to use the proxy for all protocols, and you're finished (screen should look like above image). Now you must switch from default to tor profile whenever you wish to browse the net over the tor network. This is a good option for someone who wants to use tor all the time and doesn't keep saved cookie data.
Happy anonymous browsing!