Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone knows what the code snippet means below?

header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"');

I've never seen such headers,what's it for?

like image 401
user198729 Avatar asked May 01 '10 08:05

user198729


1 Answers

It's a coded format expressing - in a machine-readable form - what the web site is going to do with your private data. IIRC, IE is using this already, it shows a human-readable translation of the P3P header in the status bar if the current site serves one.

See here: Platform for Privacy Preferences

The Gist:

The Platform for Privacy Preferences Project (P3P) enables Websites to express their privacy practices in a standard format that can be retrieved automatically and interpreted easily by user agents.

like image 60
Pekka Avatar answered Sep 23 '22 12:09

Pekka