Permit Cookies: a Firefox extension that makes cookie whitelisting easy

I’ve been writing a lot lately about Perl, MySQL and so forth, and neglecting another topic that interests me: the Web. I’m going to finish and publish some of the drafts I have on the Web before I continue with another massive database marathon. This one is about someone who read my mind and built exactly the Firefox extension I was about to build myself: an easy way to block all cookies and allow them on a case-by-case basis without nagging.

By default, cookie whitelisting in Firefox isn’t easy

As you may know, I take a “say no by default” approach to blocking cookies on the Web. I disable all cookies by default, and only enable them on sites I want to have them (a “whitelist”).

This cookie whitelist is a bit of a pain, though. Every time I browse to a site and want to allow cookies, I have to open the cookie preferences and add the site to the whitelist. That ends up being eight clicks, and I have to type the domain too.

I could tell Firefox to ask me about every cookie, but that’s worse than no privacy at all. I don’t even know why there is such an option. It makes browsing so unpleasant, I’d rather just let everyone set cookies and be done with it. So that’s not a solution.

What I need is a non-disruptive way to 1) see when cookies aren’t allowed, and 2) allow them with just a click or two. I looked around the Mozilla extension site and didn’t find what I wanted. I wanted a bare-bones extension, and everything I saw was a complicated mess. That was quite a while ago.

I thought I’d have to write my own extension, but never got around to it. In the meantime, either someone wrote exactly what I wanted, or I got better at finding things. The Permit Cookies extension by Daniel Lindkvist is about as perfect as it gets.

How Permit Cookies works

It puts a small icon in the status bar:

Permit Cookies Status Bar

When I want to allow cookies for a site, a single click on the icon pops up a dialog with the top-level domain of the site I’m browsing already filled in:

Permit Cookies Dialog

The little “C” in the status bar turns green to indicate cookies are now allowed. Another click on that same icon later will let me change my setting for that site, to delete the setting and disallow cookies once more.

Thanks, Daniel! You made Firefox a lot easier for me to use!

Technorati Tags:No Tags

You might also like:

  1. How to guard your privacy with blacklists and whitelists
  2. How to install beautiful X11 cursors
  3. Copyright statement, privacy policy and terms of use

6 Responses to “Permit Cookies: a Firefox extension that makes cookie whitelisting easy”


  1. 1 Jorge Turrubiartes

    Hey Baron, that extension is awesome. I’ve been waiting for someone to write it, and I’m just really glad that you did. I’ve never really been able to take the time to write Firefox extensions, but you’ve inspired me to learn; after all, if you did it, it can’t be that hard, right?

    Anyway, I bow down to you, oh coder of a most useful trinket! Keep up the awesome work!

  2. 2 Xaprb

    But I didn’t write it! :-)

  3. 3 Nathaniel

    Actually, I too think it’s a great extension; I don’t think you should be so modest.

  4. 4 mo

    awesome !

  5. 5 doug

    It seems to fall back to whatever your setting is in firefox preferences. So you can have it accept cookies with the cookie’s requested expiry for whitelisted sites, and accept all other cookies for this session only. Exactly what I wanted, thanks!

  6. 6 Tai

    How do I tell Firefox to ask me about every cookie? I do cookie development so sometimes I need to see what is being dropped. I don’t see this option under Tools/Options/Privacy!

Leave a Reply

Please do not use this blog to get help with problems or bugs in Maatkit or innotop: use the Sourceforge forums, mailing list, or bug trackers. If you're asking for help with MySQL, please use the MySQL mailing list instead. I'm writing a book and my time is extremely limited :-)