How to Block Cookies (Except for Sites You Use) in Any Browser

Untitled-5

Cookies can be useful when you’re in control of them. Today we’re taking a look at how you can control cookies by blocking them except for when you want them to enhance your user experience.

Why Would I Want to Do This?

A cookie is simply a small file that a web site places on your computer to store information. The process itself is totally benign, and can even be helpful—cookies do useful things like store your shopping cart information between sessions, save you from the hassle of logging into a site every time you open and close your browser, and other helpful time savers. The ones that give cookies a bad name track users without their explicit knowledge and help advertisers (or other entities) build profiles of users. Many people want to limit the amount of information that is gathered about them, and do so by limiting the kind of cookies that their browser accepts and retains.

Today, we’re going to look at some quick ways to do this is Internet Explorer, Firefox, and Chrome using whitelists. It’s much easier to specify which sites you want to accept cookies from than it is to perpetually accept and decline the hundreds of cookies your browser is bombarded with.

This does come with a few downsides, however. You’ll stop getting custom tailored ads, and you’ll start experiencing intersitial ads more frequently (like pop-over ads and video lead-in ads), as these are frequency controlled by cookies. For example, we show a popup for our newsletter the first time any user visits our site—but use cookies to keep it from showing up every time. If you block cookies from our site, you’ll see that popup more often.

As such, this is a rather aggressive approach to controlling cookies. We recommend it if you’re really serious about keeping your privacy on lock down and controlling what third-parties can track about your online behavior, or as a really great exercise in seeing just how many times web sites attempt to load your computer down with cookies.

Controlling Cookies in Internet Explorer

Internet Explorer has simple but serviceable cookie controls. There are two main areas we’re interested in: managing site status and toggling the cookie acceptance. First let’s look at how to whitelist a site. Click on Tools [the gear icon in the corner on newer versions] > Internet Options > Privacy > Sites. Here you’ll find the Per Site Privacy Actions menu, which allows you to white or black list web sites.

2011-05-17_142919

Manually entering every site you’d like to whitelist is a bit on the kludgy side, so we’re going to semi-automate the process by toggling the cookie settings. Visit Tools [gear icon] > Internet Options > Privacy, and under Settings, click Advanced.

2011-05-17_143241

Here, you’ll find a simple radio-button based menu where you can toggle the settings for first-party and third-party cookies. We’re going to temporarily turn on first-party cookie prompting and block third-party cookies. Rather than try to remember every site you might want to add to your white list, this allows you to accept the cookies on a need-to-use basis as they appear. After a few days of browsing, you’ll have likely come across nearly every site you regularly use and will be able to add them to the white list on an as-needed basis. At that point, you can toggle it to Block or leave it on Prompt if you don’t find it to be a nuisance.

Unfortunately in the realm of extensions, IE is a lightweight, and there aren’t any widely adopted cookie management extensions. If you’re a die-hard IE user and unwilling to switch to Firefox or Chrome, one available option is No More Cookies, which allows you to bulk authorize and delete cookies in your IE cache. Compared to the native functionality, it’s not a radical improvement, but it’s mildly useful.

Controlling Cookies in Firefox

If you’re a Firefox user, you’ll find robust built-in controls. Open up Firefox and click on the main Menu button, then Options > PrivacyOnce in the Privacy menu, click the first dropdown menu option under “History.” By default, this is set to “Remember History”—change it to “use custom settings for history.”

Under “Accept third-party cookies,” select “Never.” You can also change the first-party cookie setting de-selecting “Accept cookies from sites”. You can click the “Exceptions” button to manually add your most visited websites to the list, enabling them to store cookies for convenient logins and other settings. Just type the domain of the website and click “Allow” in this window to create the exception rule for the whitelist. You should be able to see which of your most visited sites really need cookie support after a week or two of regular browsing.

If you want to really dig in and get your hands dirty, you can examine cookies on a cookie-by-cookie basis by click on the Show Cookies button found on the Privacy tab. There, you can get detailed information about cookies and manually delete them.

Controlling Cookies in Google Chrome

To access cookie controls in Chrome, click the main menu icon in the upper-right corner of the browser, choose “Settings” from the menu, then scroll to the bottom of the tab and click “Advanced.”

In the expanded list, click “Content Settings,” then “Cookies.”

Like Firefox, this window has toggles for all cookies (“Allow sites to save and read cookie data”) and third-party cookies (“Block third-party cookies.”) Chrome applies both of these settings universally, then lets you add exceptions that will always be allowed and always be blocked.

Click “Add” on the right of either option to add a new site to any of the lists. If you’ve changed your mind, you don’t have to manually add or remove them: click the three-dot menu on the left of individual sites to change them to “Block,” “Allow,” or “Clear on exit.”

For easier cookie control on individual sites, click the favicon (the little site symbol to the left of the URL bar, replaced with “Secure” on an https domain), then click the number under “Cookies.”

From this window you can set individual cookies or the entire site’s cookies to “Block” or “Allow.” This works best if you have all cookies blocked by default or third party cookies blocked, as otherwise the amount of tracking cookies on each page can overwhelm you in a huge list.

Controlling Cookies in Opera

To get to the main settings menu in Opera, click the “O” button in the upper-left corner, then click “Settings.” Click “Privacy and security” and scroll down until you see the “Cookies” sub-section.

Here you have most of the same options from the browsers above: by default, the setting is “Allow local data to be set” (read: allow all cookies). For more security you can select “Block sites from setting any data” or more simply “Block third-party cookies and site data.”

Exception controls open a new window that allows you to input individual sites to allow or disable cookies. Again, it should be pretty clear which of your commonly-visited sites need to be added to a white list after a week or two of browsing.

If you’d like per-site cookie controls in Opera without having to dive into the Settings menu, try using the Policy Control extension. This add-on will let you enable or disable more or less all settings, including per-site cookie tracking, by clicking a single button on the menu bar. The settings will be saved and applied based on the current domain.

Controlling Cookies in Microsoft Edge

To access cookie controls in Edge, click the three horizontal dot icon in the upper-right corner, then “Settings.” Scroll down to the bottom of the sidebar and click “”View Advanced Settings.”

Scroll down to the bottom again, and look for the drop-down menu under “Cookies.” Click the option for “Block all cookies” or “Block only third party cookies” according to your preference.

Unfortunately, Microsoft hasn’t enabled a whitelist or blacklist option for Edge yet, and none of the officially-supported extensions do, either. If you need more granular controls of your cookies, you should choose from one of the better-supported options above.

Michael Crider has been covering technology on the web since 2011. His interests include folk music, football, science fiction, and salsa verde, in no particular order. He wrote a novel called Good Intentions: A Supervillain Story, and it's available on Amazon. You can follow him on Twitter if you want.


Jason Fitzpatrick is a warranty-voiding DIYer who spends his days cracking opening cases and wrestling with code so you don't have to. If it can be modded, optimized, repurposed, or torn apart for fun he's interested (and probably already at the workbench taking it apart). You can follow him on if you'd like.