Cookie is a cute name for what is basically a text file. When you visit a web site, the web site may want to ask your web browser (such as Internet Explorer or Firefox) to create a text file to store some useful information. This information can only be read by the web site that created the information in the first place. This is the concept behind internet cookies.
When you visit a domain such as www.somedomain.com, the somedomain.com server may ask your browser to set a cookie. This is a first-party cookie, because it is set by the domain you have chosen to visit. First-party cookies are vital to many of the biggest websites. They are usually a good thing, allowing a site to remember that you've logged in, or to remember what items you've added to a shopping basket.
But when you visit a domain such as www.somedomain.com, the web pages on that domain may feature content from a third-party domain. For instance, there may be an advertisement run by www.anotherdomain.com showing graphic advert banners. When your web browser asks for the banner image from www.anotherdomain.com, that third-party domain is allowed to set a cookie. Each domain can only read the cookie it created, so there should be no way of www.anotherdomain.com reading the cookie created by www.somedomain.com. So what's the problem?
Some people don't like third-party cookies for the following reason: suppose that the majority of sites on the internet have banner adverts from www.anotherdomain.com. Now it's possible for the advertiser to use its third-party cookie to identify you as you move from one site with its adverts to another site with its adverts.
Even though the advertiser from www.anotherdomain.com may not know your name, it can use the random ID number in the cookie to build up an anonymous profile of the sites you visit. Then, when it spots the unique ID in the third-party cookie, it can say to itself: "visitor 3E7ETW278UT regularly visits a music site, so show him/her adverts about music and music products".
Some people don't like the idea of advertising companies building up profiles about their browsing habits, even if the profile is anonymous.
A web browser such as Firefox, Opera or Internet Explorer will allow you to choose how you want it to respond to a request to set a cookie. You can tell your browser to block third-party cookies, tell it to ask you each time, or tell it to allow them every time.
Note that you can also tell your web browser to block first-party cookies (set by the site you chose to visit), but this may make it difficult to use web forums, shopping sites, and any site that relies on cookies to let you login.
Blocking third-party cookies should have no ill effect to you, however. If you want to deny third-party cookies in one of the three most popular web browsers, follow the matching instructions below.
I actually hate Internet Explorer 6, and I'm not mad keen on Internet Explorer 7 either, so I recommend that you switch to Firefox or Opera (both of which are free). But if you insist of sticking with Internet Explorer, you can block third-party cookies by doing the following:
Firefox 3 restored restored the easy method for blocking third-party cookies that was removed in Firefox 2 (see below). So blocking third-party cookies is easy in Firefox 3.
For some reason, Firefox 2.0 makes it much harder to block third-party cookies than it used to be in Firefox 1.5. I've no idea why this decision was made. But it's still possible to block cookies that don't come from the "originating server" (the domain you're visiting).
According to a page on mozillazine.org, you need to edit a hidden configuration setting by hand. To do this, enter about:config in the address bar and hit Enter. This will bring up a list of settings that you can edit yourself. To make it easier to find the relevant setting, type cookie in the box labeled Filter and then only entries with a name that contains "cookie" will be listed.
The setting we want is named network.cookie.cookieBehaviour. Once you've spotted it, double-click it and a dialogue will appear with a text field. Change the value in this field to 1 (that's numeric one) and click Okay. Then carry on using the browser as normal.
However, I've found that setting this option still leads to many third-party cookies being accepted and saved. In fact, I'm not sure if this setting even tries to block third-party cookies any more.
Instead, I find that the following works better:
This method is not automatic, because you have to tell Firefox which domains you want to allow to store cookies for longer than one session. For instance, if you use My Yahoo! as your home page, you will probably need to Allow "yahoo.com" and also "my.yahoo.com" in the Exceptions list, so that your login cookie is remembered. Otherwise you'll have to login with your username and password each time you open the browser. So this method is a little more work, but it does mean that any domain not in your allowed list will have its cookies cleared every time you close Firefox, which is better than nothing.
Opera is an excellent choice for people who need more accessibility options. To block third-party cookies in Opera: