Skip to content

Instantly share code, notes, and snippets.

@exiguus
Created January 17, 2019 23:45
Show Gist options
  • Save exiguus/ab05e0dfe22b44a8864369c8176481bf to your computer and use it in GitHub Desktop.
Save exiguus/ab05e0dfe22b44a8864369c8176481bf to your computer and use it in GitHub Desktop.
Block Facebook Graph tracking in apps
;
; BIND data file for example.local
;
$TTL 3600
@ IN SOA ns.example.local. root.ns.example.local. (
2014052101 ; Serial
7200 ; Refresh
120 ; Retry
2419200 ; Expire
3600) ; Default TTL
;
@ IN NS example.local.
A 127.0.0.1 ; This means that naughydomain.com gets directed to the designated address
* IN A 127.0.0.1 ; This wildcard entry means that any permutation of xxx.naughtydomain.com gets directed to the designated address
AAAA ::1 ; This means that naughydomain.com gets directed to IPv6 localhost
* IN AAAA ::1 ; This wildcard entry means that any permutation of xxx.naughtydomain.com gets directed to IPv6 localhost
address=/graph.facebook.com/127.0.0.1
address=/graph.instagram.com/127.0.0.1
address=/graph.accountkit.com/127.0.0.1
zone "graph.facebook.com" { type master; file "/etc/bind/db.blockeddomains"; };
zone "graph.instagram.com" { type master; file "/etc/bind/db.blockeddomains"; };
zone "graph.accountkit.com" { type master; file "/etc/bind/db.blockeddomains"; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment