The shield icon next to Tor Browser's address bar opens a three-position switch: Standard, Safer, Safest. It's the single most useful setting in the browser, and the trade-off is simple. Each step up turns off features that have historically been used to attack browsers, and each step up breaks more websites.

You can also get there from the menu: Settings, then Privacy & Security, then scroll to Security. Changing the level may prompt you to restart the browser before everything takes effect.

What each level does

StandardSaferSafest
JavaScriptOn everywhereOff on non-HTTPS sites; JIT optimizations offOff everywhere by default
Audio and videoPlays normallyClick to playClick to play
Some fonts and math symbolsOnOffOff
Some images and iconsOnOnOff
Typical site breakageRareOccasionalFrequent

Standard is every feature Tor Browser supports, which is still a lot more locked down than plain Firefox. Fingerprinting defenses, first-party isolation and the rest are active at every level. The levels only control the attack surface on top of that.

Why JavaScript is the big one

JavaScript is where most browser exploits live. It's a full programming language running code from strangers on your machine, and the JIT compiler that makes it fast is a particularly common source of memory-corruption bugs. Turning off JIT, as Safer does, gives up some speed in exchange for removing a large chunk of that risk.

This isn't theoretical. In 2013 the FBI took over Freedom Hosting, a big onion hosting provider, and served a JavaScript exploit to visitors that targeted a Firefox bug in the Tor Browser of the time. It sent the real IP addresses of affected Windows users to a server the FBI controlled. People running with JavaScript disabled weren't affected. The full story is in Freedom Hosting and the 2013 Firefox exploit. Similar techniques, under the label "network investigative technique," have turned up in later cases too.

JavaScript also makes fingerprinting easier. Even with Tor Browser's defenses, scripts can measure more things about your browser than a static page can. Our piece on JavaScript and anonymity goes through what scripts can learn.

Picking a level

Here's how I'd think about it.

Standard makes sense if you're mainly using Tor to avoid tracking or censorship and you browse mainstream sites: news, Wikipedia, documentation. The threat you face is advertisers and network snoops, not someone burning a browser exploit on you. Standard keeps everything working, which means you'll actually keep using Tor instead of giving up.

Safer is where I leave it most of the time. Almost all of the web now runs on HTTPS, so JavaScript still works on most sites, but you lose JIT and plain-HTTP scripts. Things are a little slower and the odd video needs a click. For browsing onion sites, note that Tor Browser treats .onion addresses as secure even without HTTPS, so scripts on onion sites still run under Safer.

Safest is for when the stakes are high or the sites are untrusted. If you're visiting forums of unknown origin, researching criminal sites as a journalist, or you're in a situation where a targeted exploit is a plausible risk, use Safest. Lots of things break: logins, search boxes, anything that's really a JavaScript application. Many onion sites are built to work without JS precisely because their visitors use Safest.

The fingerprinting wrinkle

There's one counterargument to cranking it up. If most Tor users are on Standard and you're on Safest, a site that can detect the difference has learned something about you. Detecting whether JavaScript runs is trivial: the site just tries to run some and sees whether the request it triggers arrives. So the three levels effectively divide Tor users into three crowds.

In practice the Tor Project's position, which I agree with, is that this matters much less than being exploited. Three large crowds is still a lot of cover. What you should avoid is creating a crowd of one, which is exactly what happens when you open NoScript and start allowing scripts site by site, or install extra add-ons. The levels are pre-set bundles so everyone on the same level looks the same. Custom tweaks undo that.

About NoScript

NoScript is still bundled with Tor Browser; it's what enforces the JavaScript rules for the security levels. Its toolbar button has been hidden by default for years, because people kept fiddling with it. You can pin it back to the toolbar through the extensions menu if you want per-site control, but go in knowing that every exception you add makes you a bit more unusual. If a site you trust doesn't work under Safest, the cleaner move is to drop to Safer for that session, use the site, then switch back. And if you're doing anything sensitive, switch first, then use New Identity so the change applies to a fresh session.

On Android, the same three levels exist in the app's settings and behave the same way.

#tor-browser #security-levels #javascript #noscript