Tuesday, November 09, 2004

HTTP P3P Header -- Apache Module mod_headers

One can install a P3P HTTP Header into an Apache webserver via a .htaccess file. Here is an example that shows the syntax of the .htaccess file:

Header append P3P 'CP="CAO DSP COR LAW CURa ADMa DEVa PSAa PSDa OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT STA",policyref="/w3c/p3p.xml"'

Notice: capitalization of 'Header', policyref does not include the domain, and use of single quotes enclosing the P3P argument.

More information on the Apache http module at:
http://httpd.apache.org/docs-2.0/mod/mod_headers.html.

No comments: