[wiki] [sites] Add some adblocking hosts method. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Thu, 31 Oct 2013 07:20:52 +0100

commit b9c418493f91892732d3526fd11f629f7fa6a700
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Thu Oct 31 07:20:10 2013 +0100

    Add some adblocking hosts method.

diff --git a/surf.suckless.org/files/adblock-hosts.md b/surf.suckless.org/files/adblock-hosts.md
new file mode 100644
index 0000000..f664120
--- /dev/null
+++ b/surf.suckless.org/files/adblock-hosts.md
_AT_@ -0,0 +1,37 @@
+Adblocking using /etc/hosts
+===========================
+
+Adblocking is a non-trivial task, but there are trivial solutions.
+
+1.) Install hosts-gen from http://git.r-36.net/hosts-gen/
+
+ % git clone http://git.r-36.net/hosts-gen
+ % cd hosts-gen
+ % sudo make install
+
+ # Make sure all your custom configuration from your current /etc/hosts is
+ # preserved in a file in /etc/hosts.d. The files have to begin with a
+ # number, a minus and then the name.
+
+ % sudo hosts-gen
+
+2.) Install the zerohosts script.
+
+ # In the above directory.
+ % sudo cp examples/gethostszero /bin
+ % sudo chmod 775 /bin/gethostszero
+ % sudo /bin/gerhostszero
+ % sudo hosts-gen
+
+Now the /etc/hosts with the zero hosts is ready and will be used in any
+further started application.
+
+The gethostszero file can of course be reused to more easier create the
+/etc/hosts file. A cronjob can be used to update the file and run hosts-gen
+again.
+
+Author
+------
+
+* Christoph Lohmann < 20h (at) r-36 (dot) net >
+
Received on Thu Oct 31 2013 - 07:20:52 CET

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:37:53 CEST