by nindalf · 5y ago · 0 comments
The top 100 have dedicated engineering and policy teams teams that will disable FLoC because they're either not interested in ads (Wikipedia) or have their own first party implementation that doesn't need FLoC (Facebook). They'll ditch FLoC.
The next 10k might have engineering teams that can make the change, but might be more interested in finding out about their audience so they can monetize more easily. They'll keep FLoC.
As for the remaining millions, only a tiny minority of them will even know this is a thing, let alone care enough to make the change or contact a developer who can do it. These are the folks who have hosted their wordpress site with GoDaddy because it was cheap and quick when they needed a site. They'll keep FLoC.
So the upshot is that github.com, instagram.com and amazon.com might opt out, but the vast majority of the web will not. Me prediction is that at least half of all web pages loaded by users won't have this header.
But until they do[1]:
Apache:
Header always set Permissions-Policy: interest-cohort=()
Caddy: header Permissions-Policy "interest-cohort=()"
Cloudflare Workers (not free as there are limits): addEventListener('fetch', event=> {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
let response=await fetch(request)
let newHeaders=new Headers(response.headers)
newHeaders.set("Permissions-Policy","interest-cohort=()")
return new Response(response.body, {
status: response.status,
statusText: response.statusText,
headers: newHeaders
})
}
Lighttpd: server.modules +=("mod_setenv")
setenv.add-response-header=("Permissions-Policy"=>"interest-cohort=()")
Netlify: [[headers]] for="/*"
[headers.values] Permissions-Policy="interest-cohort=()"
Nginx: add_header Permissions-Policy interest-cohort=();
[1] https://github.com/WICG/floc#opting-out-of-computationIf your web site does not include ads, FLoC is already disabled. Here, "ads" mean ads that EasyList can detect. This HTTP header will just make your config more complex and your responses slightly bigger, with no change of behaviour.
If you include external ads on your pages, then I doubt disabling FLoC will increase your visitors' privacy, but at least this header will have a real effect.
Citation? Here's what the FLoC explainer says:
> All sites with publicly routable IP addresses that the user visits when not in incognito mode will be included in the POC cohort calculation.
https://github.com/WICG/floc#sites-which-interest-cohorts-wi...
This sounds to me like all sites, whether they contain ads are not, are used to cluster users into cohorts.
> For pages that haven't been excluded, a page visit will be included in the browser's FLoC calculation if document.interestCohort() is used on the page.
> During the current FLoC origin trial, a page will also be included in the calculation if Chrome detects that the page loads ads or ads-related resources.
add_header Permissions-Policy interest-cohort=() always;I wrote more about this on my site: https://seirdy.one/2021/04/16/permissions-policy-floc-misinf...
I mean... the docs say that they are a "site" header that you should apply to a "page". Does that mean that you must apply it to all pages to exclude a site? Is absence on one page taken as opting back in to FLoC?
If the scope is site, then it would be better as a DNS entry. I've a feeling the scope is truly page though and I've also a feeling that most people who choose to add this header will add it on all assets now - which is a bit of a waste of bytes (even with header compression in place) but would be the only way to guarantee that all pages have it.
Hopefully if enough people disable it, it will become useless.
And this is when Google will release their own Cloudflare competitor product.
BTW do they something as popular as Cloudflare already? I'm very unfamiliar with Google's offerings.
But at this point in time I think it'd be unfair to call Cloudflare "just a CDN" so not really equivalent.
From what I've heard through the technical operations jungle. Google has been pushing their CDN product hard for a long time, which isn't a shock since they've been trying to push GCP hard for a long time. But it's a little like AWS's Cloudfront CDN. It's very very rare to see someone using an AWS Cloudfront or GCP CDN... that isn't on said cloud platform already.
app.use((req, res, next) => {
res.setHeader("Permissions-Policy", "interest-cohort=()");
return next();
}); http-response set-header Permissions-Policy interest-cohort=()Examples: Turned on HTTPS for all customers, gave image compression and optimisation to all customers, moved customers to the latest TLS as soon as possible (help drive adoption), provide tools to obscure email addresses on web pages to minimise harvesting, 1.1.1.1 privacy focused DNS, etc.
FLoC is something that an opinion can easily be formed on, and where Google have said to each site operator "you must opt-out", Cloudflare can hold an opinion that default opt-out is bad for the internet and that opt-in is better... and if they make an option that defaults to adding this header but granting customers a means to toggle it off... then all Cloudflare will have done is what Google should have done... made this opt-in by default.
Disable FLoC if you want, but Google could always change it in future and ignore the header.
I wouldn't be surprised if the top 100 websites get 80% of the traffic, the remaining top 10k get 10% and all the millions of other sites get the last 10%.
This 100-10k-millions split statistic was pulled from a talk by Ilya Grigorik, who had worked on Web Performance at Google. I'm guessing they based it on data from Chrome.
And Chrome is the most popular browser last I checked, so probably a fairly good indication of overall trends can be drawn from such statistics
Wikipedia does not need to take any action to disable FLoC; it's only active if the site opts in, on a per-pageview basis:
* If you call document.interestCohort() to get a FLoC id for a user, that pageview will be included in FLoC calculation.
* For the origin trial, to deal with the chicken-and-egg problem, a pageview is included you load ads (determined with EasyList)
(Disclosure: I work on ads at Google, speaking only for myself)
Please forgive us for not trusting Google's "we pinky swear it will change". We have no real reason to trust that Google will keep their word.
Chrome'a ad detection code is open source; https://chromium.googlesource.com/chromium/src/+/master/docs... is a good place to start.
But as I already indicated, I have trust issues with Google.
So relying on this requires continuous monitoring that Chrome doesn't randomly decide to tag something on some page as an ad, which is doing even more work just to cater to Google whims. Just blocking it is the sane choice here.
since you say it is about "chicken-and-egg problem" during the trial: is there a clear commitment somewhere that Google plans to not include pages that do not use the FLoC API in the future?
Not something as clear as I'd like. The closest I see is:
A page visit will be included in the browser's FLoC calculation if document.interestCohort() is used on the page. During the current FLoC origin trial, a page will also be included in the calculation if Chrome detects that the page loads ads or ads-related resources. -- https://web.dev/floc/#do-websites-have-to-participate-and-sh...
Can I ask why? I honestly can't understand how anyone could.
At a lower level, I do this job because I'm paid, which allows me to donate. [5] But I wouldn't do this work if I thought it was harmful; there are lots of different kinds of jobs I could take.
[1] https://www.jefftk.com/p/effect-of-advertising
[2] https://github.com/google/fledge-shim
[3] https://github.com/WICG/turtledove/issues/161
That link only works if we buy into the premise: "One way to think about this is, what would the world would be like if we didn't allow advertising? No internet ads, TV ads, magazine ads, affiliate links, sponsored posts, product placement, everything."
However, no. I don't buy that premise at all. The state of ads as it is now is actively harmful with very little to show for in terms of "new non-stickier products" etc.
It is still a problem for Wikipedia, because the global Javascript for each language is editable by a subset of the editors for that language (https://en.wikipedia.org/wiki/MediaWiki:Common.js for instance), unlike the HTTP headers which can only be changed by the Wikimedia sysadmins.
One company decides to do something stupid and you expect millions of website owners to scurry and add junk to their headers to create a "mitigation"? This is nuts.
This is a browser problem, not a website problem.
Unfortunately, the other solution is to get billions of people to stop using a trojan horse of a browser.
I wouldn't be surprised if it's the same in Google's case. A dozen big-name websites drop FLOC? Who cares, there's a billion more.