I am searching all over the place and I may be trying to do something I should't be.

I have just implemented P3P on my site, but the P3P header isn't getting sent with the header() function in PHP.

header("P3P: policyref='http://www.mysite.com/w3c/p3p.xml'");

I have read around and around the internet, but have not come up with a good solution. I have noticed that I probably need to place a header statement in my .htaccess file, but this one doesn't work:

Header set P3P "policyref=\"/w3c/p3p.xml\""
# Also tried...
Header add P3P "policyref=\"/w3c/p3p.xml\""

This is weird since the Privacy Policy is working as it should, but using the LINK and the HEADER method, neither seem to be accepted when using the W3C Validator .

<link rel="P3Pv1" href="http://www.mysite.com/w3c/p3p.xml" />

Does anyone have any ideas on how I need to get this done right?

    NEVERMIND!!! I had the syntax all wrong...

    Here is how it is supposed to be (in PHP):

    <?php
    header("P3P: policyref=\"http://www.mysite.com/w3c/p3p.xml\", CP=\"IDC DSP COR CURa ADMa DEVa TAIa CONa OUR DELa BUS IND PHY ONL UNI PUR COM NAV DEM STA\"");
    ?>

    With this, the LINK tag also works now. Sorry to bother you... 😃

      Write a Reply...