aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-08-29 13:42:13 +0200
committerGuido Günther <agx@sigxcpu.org>2014-09-01 14:43:49 +0200
commitb8ceb58385d48a8858eb304369206170cc8a39a0 (patch)
tree06013b758c1c5786d7cc36d682c9a47f66a3acf1 /README
Initial commit
Diffstat (limited to 'README')
-rw-r--r--README47
1 files changed, 47 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..d4fc9f6
--- /dev/null
+++ b/README
@@ -0,0 +1,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
+