# FLoC network opt-out

**URL:** https://meta.discourse.org/t/floc-network-opt-out/187080
**Category:** Feature
**Created:** [April 16, 2021, 10:23am UTC](https://meta.discourse.org/t/floc-network-opt-out/187080 "2021-04-16T10:23:49Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 20, 2021, 5:45pm UTC](https://meta.discourse.org/t/floc-network-opt-out/187080/16 "2021-04-20T17:45:42Z")

</div>

This should do you:

```plaintext
## Any custom commands to run after building
run:
  - exec: echo "Beginning of custom commands"
  - replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /location \/ {/
     to: |
       location / {
           add_header X-Clacks-Overhead "GNU Terry Pratchett";
           add_header Permissions-Policy "interest-cohort=()";

```

adapted from [Add a custom HTTP header to requests made to your Discourse](https://meta.discourse.org/t/how-to-add-a-custom-http-header-to-your-discourse/26439)  
aside: how very topical for today: [Terry Pratchett’s debut turns 50: ‘At 17 he showed promise of a brilliant mind’ | Books | The Guardian](https://www.theguardian.com/books/2021/apr/20/terry-pratchett-debut-turns-50-at-17-the-carpet-people)

result is:

```plaintext
○ → curl -I https://testmachine/srv/status
HTTP/2 200 
server: nginx
date: Tue, 20 Apr 2021 17:48:15 GMT
content-type: text/plain; charset=utf-8
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-download-options: noopen
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
x-request-id: ef02ce7c-fabc-49b9-986e-c2c46e50f8e4
x-runtime: 0.004575
x-redis-calls: 1
x-redis-time: 0.000153
x-queue-time: 0.000952
x-clacks-overhead: GNU Terry Pratchett
permissions-policy: interest-cohort=()

```

---

_[View the full topic](https://meta.discourse.org/t/floc-network-opt-out/187080)._
