News for hackers. Stuff that matters.
Re:Google’s approach to replacing the cookie is drawing anti... by kmeisthax on Wednesday February 03, 2021 @11:07PM (#26022459)
The reason why subdomains work is that you can make the root domain go to your own site, while the subdomain goes to your ad provider. If you use a CNAME it's literally just a matter of publishing another DNS recod and you're done. Moving to a subdirectory requires setting up a reverse proxy on your existing infrastructure, and keeping it up to date every time your ad network switches domains. Hell, on a lot of platforms you don't even have the ability to reconfigure the server in such a way as to proxy through an entire ad network, so you'll have to use a platform or technology specific plugin if available.

That's why the ad industry used third-party domains in the first place, BTW - it's a zero-setup solution. Subdomains are minimal-setup; subdirectories are a huge hassle.

Re:Google’s approach to replacing the cookie is drawing anti... by ComodoHacker on Thursday February 04, 2021 @02:16AM (#26023332)
>That's why the ad industry used third-party domains in the first place

Another reason is ad provider doesn't have to trust first party, if ads are served from their server.

I'm not sure which reason is more important.

Re:Google’s approach to replacing the cookie is drawing anti... by devlopr on Friday February 05, 2021 @08:37AM (#26036125)
You wouldn't need to. Let's say they gave you a php script (any server side processing language) you could place it anywhere and it would download new ad content and show it as a first party ad.

Easier than changing a cname.