About this document
This document is a mini tutorial on cookies. Its targets questions such as: what is a cookie, how is it used, is it anything dangerous for your privacy, and how are cookies handled in Opera 7.
Please read the NON WARRANTY Disclaimer! about this document. This document has been edited according to suggestions of an Opera Software profesional (opera.general newsgroup), 2003-Sep-20th.
I would be happy to receive suggestions and advices concerning the content on this page.
English descriptions in the GUI of Opera's cookie settings are kind of obscure. This document is trying to clear this obscurity. References to sources of clarity, as well as to related storie(s), can be found at the bottom of this page.
Cookies explained: Normal | Third Party | Illegal
Opera 7 cookies handling: Server Manager | Normal | Third Party
General concepts
Cookies are small pieces of information that some sites want to store in your browser. After sites have stored cookies in your browser, sites can access these cookies (these pieces of information) later.
Today, the proper functioning of many sites rely on browser's ability of cookie handling. Unfortunately, cookies can be of a privacy concern.
-
www.example.com,fun.example.com,jokes.fun.example.com,www.example2.com,evil.example2.comare all examples of servers. They can be contacted on the Internet. -
example.com,example2.comare examples of domains. They are owned by someone -- a man, a company, an organization... They can be contacted on the Internet. -
www.example.com,fun.example.com,jokes.fun.example.comare three different servers in the same registeredexample.comdomain. - There is a special category of domains that can not be contacted on the Internet. Instead, they are suffixes for many registered domains:
-
domA.com,domB.comare two different registered domains in the same top-levelcomdomain.
domA.bg,domB.bgare two different regostered domains in the nationalbgdomain of Bulgaria.
domA.co.uk,domB.co.ukare two different registered domains in the national commercialco.ukdomain of United Kingdom.
Cookies and privacy
Cookies may have many things to do with your privacy. You or your system administrator may have to think about it.
What are normal cookies?
Usually your activites on site A should remain just between you and the site A. Your activity on site A does not exceed into other sites. (Un)fortunately, cookies can be a source of information leakage into other sites. If a cookie does not cause such information leakage, you have normal cookies.
What are third party cookies?
Imagine that you (your browser) speak with your chief (site A) about some company secrets, while your competitor(site B) has installed a microphone in the room and listens to your conversation.
Sometimes site A's pages contain implied references (the "microphone") to site B (eg. to an image kept on site B). Your browser follows the reference, silently contacts site B and in this process site B trys to set a cookie on you.
In this situation, site B acts as third party, since it gets information about your activitis on site A. The site B'cookie is third party cookie. Your browsing activity on site A silently exceeds into site B.
But, are all sites B assumed as third party, while you are browsing site A?
No. If you browse site A (www.domA.com/site/A), then:
-
www.domB.com/site/Bis third party -
www.domA.com/site/Bis not third party (sites A and B are on the same serverwww.domA.com) -
fun.domA.com/site/Bis not third party (A and B are on different servers (www.domA.comandfun.domA.com), but still in the same domain reach (domA.com).
Strictly speaking, third party cookies make a legal use of cookies. To repeat the actual privacy concern: The third party site silently gets information about your browsing activity on site A, and you are not aware of this silent fact! Such information leakage can be used for "good" or "bad" purposes.
Examples of "good" purposes: Site B tracks the number of visitors on site A. Or: Site B keeps ad baners for site A and tracks down which banners have been already seen by you.
Examples of "bad" purposes: Site B tracks down your personal activities on site A.
Please note that a purpose may be "good" or bad "bad" depending on many factors. It is your choice of freedom to define what is "good" or bad "bad" for yourself.
What are illegal cookies?
When some site A sets a cookie in your browser, site A also instructs your browser about who can access the cookie. Cookies with illegal instructions are illegal cookies.
If you want to prevent abuse, you should not allow illegal cookies
Cookies with illegal domains
A site may want to set a cookie on you, ordering it to ba accessible to all servers in its registered domain. Eg site A (www.domA.com/site/A/) wants to set a cookie, ordering it to be accessed by every server in the same registered domA.com domain. This usually makes a good dose of sense. This way if you have looged in on server login.domA.com, you can be treated gently as a customer on e-cards.domA.com, fun.domA.com, clubs.domA.com, etc. This is a legal use of cookie and happens often.
But, imagine a site wants to set a cookie on you, ordering it to be accessible to all sites in an unregistered domains such as top-level ones com, net,..., or national ones no, bg..., or "specialized" national ones co.uk, co.jp,...
This is an illegal use of cookies, since such cookie will be immediately accessible to many potentially abusive servers in the world that have nothing to do with your activity on the web!
Opera can esily detect this illegal use of domains such as top-level ones com, net,..., or national ones no, bg.... Thus Opera will never accept such missuse of cookies. Nevertheless, you can choose Opera to warn you about such cookies.
Cookies with "indirectly" illegal domains
It is a bit complicated with unregistered domains such as "specialized" national ones co.uk, co.jp. How can Opera know if yy.zz is a "specialized" national domain, suffix for many other registered domains, or is itself an usual registered domain in national zz domain?
The answer is simple. Opera can use Domain Name Service to check if yy.zz is a registered domain. If the check fails, Opera assumes yy.zz is "specialized" national domain.
Thus if site D (www.domD.yy.zz) wants to set a cookie, ordering it to be accessible to yy.zz, Opera will first check (using Domain Name Service, DNS) if yy.zz can be contacted on the Internet. If DNS check fails, Opera will accept the cookie, but will silently restrict the later access to the cookie just to the site D's server www.domD.yy.zz, instead of allowing it to all servers in the yy.zz domain.
Cookies with illegal servers
Imagine site A (www.domA.com/site/A/) is setting a cookie in your browser, ordering the cookie to be accessible to site B (www.domB.com/site/B/). This is an illegal use of cookies. Opera will never accept such missuse of cookies.
Cookies with illegal paths
Imagine site A (www.domA.com/site/A/) is setting a cookie ordering it to be accessible by another site on the same server (www.domA.com/site/C/). This is an illegal use of cookies, but it happens kind of often. You may choose to allow cookies with illegal paths.
Cookie settings in Opera 7.2
Please note also that some English descriptions in the cookie handling preferences have been changed from Opera 6 thourgh Opera 7.2. This does not imply any change in behaviour though.
Should I enable cookies at all?
How do I handle cookies in Opera?
The general behavour is controlled by the dropdown for normal cookies, and the dropdown for third party cookies, and the checkboxes below them. Use the checkboxes if you want to specify a general accept/refuse behaviour for illegal path or illegal domains.
You can also create server-specific filters (eg. for server hi.A.com) or domain-specific filters (eg. for domain A.com).
Domain-specific filters (eg. for domain domA.com) will apply for all servers in the specified domain (eg., fun.domA.com, serious.domA.com, evil.domA.com, etc.).
The general settings for Normal cookies and Third party cookies may blend with the specific filters, created in the Server Manager.
Server manager
In Server Manager, you can force it to show just the filters. This is done by turning off the checkmarks in front of Cookies
and Wand
. Otherwise, you will have listed all cookies and/or Wand logins currently present in Opera.
In the special filter for a specific server, you can specify:
Normal cookies dropdown explained
Third party cookies dropdown explained
References
- A dedicated article on Privacy and cookies at opera.com's knowledge base.
-
Questions on the subject have been raised a number of times on Opera users mailing lists and newsgroups. It is especially of interest to drop an eye at the Google's cache of
Third party cookies?!
discussion at opera.tech newsgroup. -
When I wrote this page and announced it as
Cookies and cookies handling in Opera 7 explained
thread in opera.general newsgroup, I was given some corrections and suggestions by an Opera Software professional. I have implemented them in the current document. -
Again in
Cookies and cookies handling in Opera 7 explained
thread in opera.general newsgroup, a link was published to concerning some cookies issues in Internet Explorer
