Skip to content

Commit edb12eb

Browse files
Initial commit
0 parents  commit edb12eb

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<IfModule mod_headers.c>
2+
Header always set Permissions-Policy "interest-cohort=()"
3+
</IfModule>

readme.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# How To Block Visits To Your Website From Being Counted in Google FLoC
2+
3+
Google has announced they have [started testing FLoC](https://blog.google/products/ads-commerce/2021-01-privacy-sandbox/) so you can expect the number of users being counted in FLoC to increase. Currently there is no official way to opt-out of FLoC, but [according to the github documentation](https://github.com/WICG/floc) disabling third-party cookies is a workaround solution.
4+
5+
For website publishers there is a way to make sure visits to their website isn't included in FLoC by adding the following code to their website header:
6+
>
7+
>Permissions-Policy: interest-cohort=()
8+
>
9+
The easiest way to do this is by adding somee code to your HTACCESS file. Making a mistake when editing your HTACCESS will completely break your website, so if you don't know what you're doing or have never edited your HTACCESS file this might not be a good idea. If you do want to add the code, you'll ned to add the three lines below:
10+
>
11+
>&lt;IfModule mod_headers.c&gt;<br />
12+
>Header always set Permissions-Policy "interest-cohort=()"<br />
13+
>&lt;/IfModule&gt;<br />
14+
>
15+
Once you've saved your HTACCESS file use a [header checker](https://securityheaders.com/) and look for "interest-cohort=()" next to the "Permissions-Policy" section, if it's there you're good.
16+
17+
## What Websites Should Be Blocking Google FLoC
18+
If you run a website that deals with Personally Identifiable Information (PII) you should probably be blocking FLoC. If your website has medical, health, fitness, financial, dating, relationship, gender, sexuality, political, or any type of contrevertial content, you probably should be blocking FLoC.
19+
20+
## What Websites Should Not Be Blocking FLoC
21+
It's currently unknown if there are any negative consequences for blocking FLoC, so you should be careful where you do decide to implement this code. That said there are some websites where blockinmg FLoC seeems like a bad idea. If your website earns income using Google AdSense, I would not block FLoC. Additionally if your website gets traffic, sales, or leads from PPC Advertising from things like Google Adwords I would not block FLoC.
22+

0 commit comments

Comments
 (0)