Aloodo / ad.aloodo.com

http://ad.aloodo.com/
GNU Affero General Public License v3.0
19 stars 4 forks source link

API: detect the Verizon header #2

Open dmarti opened 9 years ago

dmarti commented 9 years ago

http://webpolicy.org/2014/10/24/how-verizons-advertising-header-works/

regiskuckaertz commented 8 years ago

Hi @dmarti

I thought I could help you with this one. Detecting the HTTP header will require server-side tech though, as JavaScript can only see the user agent and referer.

It's fairly straightforward, all you need is stash all the request headers you're interested in in a JSON object and hand it over to the JS in the page. The only question is to know what server-side technology is at your disposal.

Let me know and I'll submit a PR. Cheers

dmarti commented 8 years ago

Currently all of this site is on GitHub Pages. There is no server. We do need to get one, though, in order to handle bugs such as this one and setting the "DNT: T" for #11 .

I haven't decided on where to host it and what technology to use. Any suggestions would be welcome.

regiskuckaertz commented 8 years ago

Ooh, I'm not well-versed in hosting services, but presumably the Amazon cloud: https://aws.amazon.com/websites/?nc2=h_l3_wa