blob: d4fc9f66b50c10a934a167548d85eec3a090c7a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# -*- mode: markdown; -*-
Overview
--------
nss-dontstalk me is a nsswitch module that maps host lookups of well known web
trackers to localhost so they become uneffective.
The idea is to have the same black lists available regardless of the browser/application used.
While doing this via /etc/host would be possible there's no /etc/hosts.d mechanism to
keep the changes separate. Also maintaining this for ipv4 and ipv6 can be cumbersome.
Compiling
---------
nss-dontstalkme uses autotools to build the package:
./autogen.sh
./configure --prefix=/usr
make
Installation
------------
Make sure libnss-dontstalkme.so.2 is in your libraries load path
either installing it into the filesystem
make install
or, if you want to run from the built source, by setting LD_LIBRARY_PATH
LD_LIBRARY_PATH=$PWD/src/.libs
Afterwards add dontstalkme to the hosts entry of /etc/nsswitch.conf e.g. change
hosts: files myhostname mdns4_minimal [NOTFOUND=return] dns mdns4n
to
hosts: files myhostname mdns4_minimal [NOTFOUND=return] dontstalkme dns mdns4
It's important to add the `dontstalkme` entry before the `dns` entry.
Testing
-------
You can test the basic functionality by running
LD_LIBRARY_PATH=$PWD/src/.libs/ getent ahostsv4 google-analytics.com
|