Jump to content

17 posts in this topic

Posted (edited)

[size="5"][b]Firefox - Keep Cookies for Specific Websites[/b][/size]

[size="4"][u][b]About This Guide[/b][/u][/size]
This guide will show you how to configure [url="https://www.mozilla.com/en-US/"][b]Mozilla Firefox[/b][/url] to keep cookies for specific websites only and delete the rest.

[b]Why would I want to do this?[/b] This helps you to balance convenience, security, and privacy. It's convenient because it allows you stay logged into websites of your choosing. It also lets you keep cookies which store settings or opt-out cookies. It provides security because it will log you out of all other websites when you close the browser. It provides extra privacy from things like tracking cookies, which monitor your activities around the web. These cookies will be deleted everytime you close Firefox.


[size="4"][u][b]Configure Settings[/b][/u][/size]
First, you have to ensure a few settings are configured properly, else things may not work properly.

If using Firefox 3.x, open [b]Tools -> Options[/b] on the menu bar.
If using Firefox 4.x, click the main menu and click [b]Options[/b].

[b][size="3"]1.[/size][/b]
In the Options dialog, click the [b]Privacy[/b] tab.
In the first dropdown menu, choose [b]Use custom settings for history[/b].

[center][attachment=276634:firefox 01.png][/center]

[size="3"][b]2.[/b][/size]
Look for the checkbox that says [b]Clear history when Firefox closes[/b].
If this box is [b][color="#9932CC"]unchecked[/color][/b], then you can skip to [b]step 4[/b].
But if this box is [b][color="#9932CC"]checked[/color][/b], then click the [b]Settings[/b] button to the right.

[center][attachment=276636:firefox 02.png][/center]

[size="3"][b]3.[/b][/size]
In this dialog, make sure [b]Cookies[/b] is [color="#9932CC"][b]unchecked [/b][/color]and click OK.
If this is not disabled, then Firefox will delete all cookies when closing the browser. So this option must be disabled.

[center][attachment=276638:firefox 03.png][/center]

[size="3"][b]4.[/b][/size]
Make sure the option [b]Accept cookies from sites[/b] is [color="#9932CC"][b]checked[/b][/color].
In the second dropdown, next to where it says Keep until, choose [b]I close Firefox[/b] in that list.

[center][attachment=276640:firefox 04.png][/center]


[size="4"][u][b]Choose Websites to Keep Cookies For[/b][/u][/size]
Now that Firefox is properly configured, you just have to choose the websites which you want to keep cookies for. There are two different methods you can use.

[size="3"][b]Method 1: Exceptions List[/b][/size]
Open up the [b]Options[/b] dialog, click the [b]Privacy[/b] tab, and click the [b]Exceptions[/b] button.

[center][attachment=276650:firefox exceptions button.png][/center]

From this dialog, you can manually enter websites to keep cookies for.
Type in the website you want to add, and click the [b]Allow[/b] button.

[center][attachment=276642:firefox 05.png][/center]


[size="3"][b]Method 2: Page Info[/b][/size]
Open up the website that you want to keep cookies for.
Right click anywhere on the page and click [b]Page Info[/b].
Alternatively, you can choose [b]Tools -> Page Info[/b].

[center][attachment=276644:firefox 06.png][/center]

Click the [b]Permissions[/b] tab.
Under where it say Set Cookies, [color="#9932CC"][b]uncheck [/b][/color][b]Use Default.[/b]
To the right, choose to [b]Allow[/b] cookies for this site.

[center][attachment=276652:firefox 07.png][/center]


[u][size="4"][b]Extra Notes[/b][/size][/u]
Firefox may not delete all of your cookies if your homepage is set to "Show my windows and tabs from last time". By following this guide, you are configuring Firefox to delete the cookies at the end of the [b]session[/b]. When this is set as your homepage, it is resuming your previous session. I'm not sure why only some cookies are kept and others are deleted though.

[center][attachment=278188:Home Page.png][/center]

[color="#808080"][i][size="1"]Nov 16 2010 - Added extra note about setting homepage[/size][/i][/color] Edited by Xinok
1 person likes this

Share this post


Link to post
Share on other sites

Posted

Great guide, thank you. :)

Share this post


Link to post
Share on other sites

Posted

Thanks, this is why i love Firefox ;)

Share this post


Link to post
Share on other sites

Posted

Great guide, going to check this out right now. Cheers!

Share this post


Link to post
Share on other sites

Posted

Excellent guide!

Share this post


Link to post
Share on other sites

Posted

There's no need to check "Clear history when Firefox closes". That step is useless for keeping the cookies.
All you need to do is select the "Close Firefox" in the "Keep until:" selection and add the sites you want to keep the cookies of in the exception (mark them under "Allow").

When Firefox will be closed, it will delete all the cookies... except the ones marked under "allow". Here's a proper explanation from back 2008:
[url="http://www.neowin.net/forum/topic/647337-keep-cookies-for-certain-sites-when-clearing-private-data/page__view__findpost__p__589534698"]http://www.neowin.ne...t__p__589534698[/url]

Share this post


Link to post
Share on other sites

Posted

I just allow certain sites and block every domain.

Share this post


Link to post
Share on other sites

Posted

I'm doing that for a long time already but there is something I would like to get rid of...

Each time I visit a webpage with an imgxxx.imageshack.us I get a popup. I tried to enter *.imageshack.us as blocking but it does not work. Anyone know how to do that?

Share this post


Link to post
Share on other sites

Posted

[quote name='Pupik' date='31 October 2010 - 08:33' timestamp='1288528396' post='593323868']
There's no need to check "Clear history when Firefox closes". That step is useless for keeping the cookies.
All you need to do is select the "Close Firefox" in the "Keep until:" selection and add the sites you want to keep the cookies of in the exception (mark them under "Allow").

When Firefox will be closed, it will delete all the cookies... except the ones marked under "allow". Here's a proper explanation from back 2008:
[url="http://www.neowin.net/forum/topic/647337-keep-cookies-for-certain-sites-when-clearing-private-data/page__view__findpost__p__589534698"]http://www.neowin.ne...t__p__589534698[/url]
[/quote]
Some people are going to have this option enabled and want to keep it enabled. This is why I added steps 2 and 3, to ensure that this option [b]doesn't[/b] delete your cookies. Step 2 hasn't changed, but I edited it a bit hopefully to make it clearer that if this box is unchecked, you can skip to step 4. Then step 4 tells you to do exactly what you said.


[quote name='Rhialto' date='31 October 2010 - 09:39' timestamp='1288532381' post='593324024']
I'm doing that for a long time already but there is something I would like to get rid of...

Each time I visit a webpage with an imgxxx.imageshack.us I get a popup. I tried to enter *.imageshack.us as blocking but it does not work. Anyone know how to do that?
[/quote]
What are you using to block popups from *.imageshack.us? You could try an adblock extension, but you'd have to block the URL of the popup itself, not the website that creates it.

Share this post


Link to post
Share on other sites

Posted

Cookie Monster extension is great for this instead of these directions. Also easier :) l also use a clear history extension.

Share this post


Link to post
Share on other sites

Posted

[quote name='Xinok' date='31 October 2010 - 13:31' timestamp='1288546309' post='593324598']What are you using to block popups from *.imageshack.us? You could try an adblock extension, but you'd have to block the URL of the popup itself, not the website that creates it.[/quote]
The popup I was talking about was about the cookie, like this one:

[img]http://img688.imageshack.us/img688/8051/18037018.png[/img]

Unless I block full imageshack.us I always get such pupop and I block them each time but [b]img[/b] range from [b]img0[/b] to [b]img999[/b] so that's a lot to block. I tried to enter *.imageshack.us but it's a no go and like I said if I block imageshack.us it works but for the complete website while I was looking to use imageshack.us for my sessions and only block imgxxx (many of those when browsing here and there).

Share this post


Link to post
Share on other sites

Posted

By the way. Anyone knows how to achieve the same on Chrome?
Because [url=http://www.neowin.net/forum/topic/895410-keep-only-spesific-cookies-after-each-browser-closer-like-in-firefox/]this[/url] is pretty much the only thing that stops me from switching to Chrome from Firefox, as my default browser.

Share this post


Link to post
Share on other sites

Posted

I've switched from Chrome to Firefox, and I'm looking for an extension in Firefox that can do this easily.

 

For Chrome, it's Vanilla Cookie Manager, as mentioned in the other thread. For the current version, it's very easy: when you visit a site, just click on the extension button in the address bar and select to whitelist the cookies of the site or of the domain.

 

Prior to that, I used CCleaner, but I usually forgot to mark new cookies that I want to keep, so I decided to use the browser extension instead. Since I had a lot of cookies that I wanted to keep, I looked for the configuration file in CCleaner that contained the list of cookies to keep, then copied and pasted it in Vanilla.

Share this post


Link to post
Share on other sites

Posted

I'm currently trying the Cookie Whitelist add-on.

Share this post


Link to post
Share on other sites

Posted

thanks

Share this post


Link to post
Share on other sites

Posted

Hi

 

Great guide, but not quite complete !

 

in step 3, you have to make sure that "Site Preferences" is unchecked too ("not just Cookies")

mine was checked and I spent an hour trying to figure out why it didn't work!

 

cheers!

 

Share this post


Link to post
Share on other sites

Posted

I have "accept third party cookies" set to either "always" or "from visited" else it breaks youtube commenting.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.