# Detecting the FLoC opt-out HTTP Header

**URL:** <https://discuss.httparchive.org/t/detecting-the-floc-opt-out-http-header/2140>\
**Category:** Analysis\
**Created:** [April 29, 2021, 10:11pm UTC](https://discuss.httparchive.org/t/detecting-the-floc-opt-out-http-header/2140 "2021-04-29T22:11:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nooshu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/nooshu/32/1476_2.png) [@Nooshu](https://discuss.httparchive.org/u/Nooshu)\
**Post date:** [April 29, 2021, 10:11pm UTC](https://discuss.httparchive.org/t/detecting-the-floc-opt-out-http-header/2140/1 "2021-04-29T22:11:39Z")

</div>

[Federated Learning of Cohorts (FLoC)](https://github.com/WICG/floc) is a new technology that exists in versions of Chrome 89+. Its purpose is to assign Chrome users to groups (or cohorts), depending on their browser history. These cohorts can be used for targeted advertising by Google. This technology is currently in the [“origin trial” stage](https://web.dev/origin-trials/), where individual sites can opt-in to test this technology. This will allow Google to test the technology in the browser and also improve the underlying algorithms in the background that are assigning users to cohorts.

As per the spec, it is possible for websites to serve a `Permissions-Policy` HTTP response header to opt out of the cohort computation:

```sql
Permissions-Policy: interest-cohort=()

```

Over the next few months it will be interesting to see how this header is adopted across the monthly crawl. With the help of @paulcalvano and @tunetheweb a query and initial results have been gathered and they can be seen below:

```sql
SELECT
  _TABLE_SUFFIX AS client,
  count(DISTINCT pageid) AS pages,
  pages_total,
  count(DISTINCT pageid) / pages_total AS pages_pct,
FROM
  `httparchive.summary_requests.2021_04_01_*`
JOIN
  (SELECT _TABLE_SUFFIX, COUNT(DISTINCT pageid) AS pages_total FROM `httparchive.summary_requests.2021_04_01_*` GROUP BY _TABLE_SUFFIX)
USING (_TABLE_SUFFIX)
WHERE
  LOWER(respOtherHeaders) LIKE '%interest-cohort=()%' AND
  firstHTML
GROUP BY
  _TABLE_SUFFIX,
  pages_total

```

The latest crawl stats produce this:  
 ![Screenshot 2021-04-29 at 23.04.05](https://canada1.discourse-cdn.com/flex035/uploads/httparchive/original/2X/6/6e5fb87bb11be4c3ad1decb6d597f3456591b7e5.png)

Since this is a very new change , and sites started adding the opt-out header mid way through April the latest crawl won’t show a complete picture. This query will be useful in coming months.

A link to @tunetheweb Google Sheet with the data can be [found here](https://docs.google.com/spreadsheets/d/1ALx2S9yP7__9p9WoXCh6aX9keJthOzAe-dGKbEfDwzQ/edit#gid=414609877).

An alternative source for the moment from [Crawler.ninja](https://crawler.ninja) can be [found here](https://crawler.ninja/files/floc-opt-out-sites.txt) which lists 2,354 sites at the date of posting.

---

<div class="post-metadata">

**Author:** ![Nooshu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/nooshu/32/1476_2.png) [@Nooshu](https://discuss.httparchive.org/u/Nooshu)\
**Post date:** [May 4, 2021, 12:12pm UTC](https://discuss.httparchive.org/t/detecting-the-floc-opt-out-http-header/2140/2 "2021-05-04T12:12:34Z")

</div>

I don’t seem to be able to edit the post, so adding in another source for reference:

[censys.io](https://censys.io/domain?q=%22interest-cohort%3D%28%29%22) reports 3,001 sites with the HTTP header added.

---

<div class="post-metadata">

**Author:** ![Nooshu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/nooshu/32/1476_2.png) [@Nooshu](https://discuss.httparchive.org/u/Nooshu)\
**Post date:** [June 4, 2021, 8:02am UTC](https://discuss.httparchive.org/t/detecting-the-floc-opt-out-http-header/2140/3 "2021-06-04T08:02:39Z")

</div>

Just bumping this post to see if any other crawl data is now available for analysis? I assume we may have had a full months crawl data by now (or coming up very soon).

---

<div class="post-metadata">

**Author:** ![rviscomi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/rviscomi/32/835_2.png) [@rviscomi](https://discuss.httparchive.org/u/rviscomi)\
**Post date:** [June 7, 2021, 4:52pm UTC](https://discuss.httparchive.org/t/detecting-the-floc-opt-out-http-header/2140/4 "2021-06-07T16:52:11Z")

</div>

Yes, May 2021 data is available in BigQuery now.

---

<div class="post-metadata">

**Author:** ![tunetheweb](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/tunetheweb/32/1671_2.png) [@tunetheweb](https://discuss.httparchive.org/u/tunetheweb)\
**Post date:** [June 9, 2021, 10:05pm UTC](https://discuss.httparchive.org/t/detecting-the-floc-opt-out-http-header/2140/5 "2021-06-09T22:05:52Z")

</div>

Looks like definitely a big jump up for May, but relatively small in grand scheme of things:

| client | pages | pages\_total | pages\_pct |
| --- | --- | --- | --- |
| mobile | 7,258 | 7,205,383 | 0.1007% |
| desktop | 11,229 | 6,242,688 | 0.1799% |

June will be finished in a couple of weeks so can check then too.
