Forum Moderators: phranque

Message Too Old, No Replies

Customizing HTTP Headers

         

nathanpennington

9:54 pm on May 23, 2007 (gmt 0)

10+ Year Member



I need to customize my website's header to include a line about my new P3P policy. I really have no clue as to how to do this.

I read that the way this is done is to set the HTTP header via the web server. But apparently to do this I'd need to recompile Apache to include the mod_headers module.

Is there a tutorial on how to do that? I really have no clue. Can I even recompile Apache on a shared server?

jdMorgan

3:29 am on May 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If your host doesn't support mod_headers, you may want to look for a new host.

If your site is PHP-driven, you could output that header using PHP.

Alternately, you can place your policy in the "well-known location" /w3c/p3p.xml, where smart browsers will check for it by default in the absense of a P3P header.

Jim

pageoneresults

3:37 am on May 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld nathanpennington!

After you implement your P3P, be sure to validate it...

W3C P3P Validator
[w3.org...]

nathanpennington

4:38 am on May 24, 2007 (gmt 0)

10+ Year Member



Looks like I'm going to have to learn a little PHP. Oh, well, I guess that was bound to happen sooner or later.

Pageoneresults, thanks for the welcome!

Nathan