Skip to content

Commit

Permalink
Opt out of Google's FLoC
Browse files Browse the repository at this point in the history
See:

* https://github.com/WICG/floc#opting-out-of-computation
* WICG/floc#103
* WICG/floc#100

FLoC can allow Google (and presumably other parties) to track users across the web. Anyone visiting my website would have his cohort change, making them more easily identifiable across the web. I do not track my users and neither should Google, or any one for that matter.
  • Loading branch information
AbhyudayaSharma authored Apr 16, 2021
1 parent 729aac7 commit 11aba46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ http {

# HTTP Strict Transport Security (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security)
add_header Strict-Transport-Security 'max-age=31536000; includeSubdomains; preload';

# Dear Google: please do not track users visiting my website
# https://github.com/WICG/floc#opting-out-of-computation
add_header Permissions-Policy 'interest-cohort=()';

# We're only serving static files so using sendfile() avoids copying
# data between userspace and kernelspace.
Expand Down

0 comments on commit 11aba46

Please sign in to comment.