There are currently 2 users online.
CLI scripts for Give Mee No Ads!
Scripts to ease up /etc/hosts adblocking
give-mee-no-ads (1.0-3) unstable; urgency=low
* Added wget to depends
chrm
Mon, 2014/09/15 - 13:05
Permalink
Thats the content of the update-hosts-adblocking script:
----
#!/bin/sh wget -O /tmp/hosts http://winhelp2002.mvps.org/hosts.txt && echo "127.0.0.1" $(uname -n) "localhost" > /etc/hosts && tr -d '\015' < /tmp/hosts >> /etc/hosts if [ $? -ne 0 ] then echo "ERROR! Updating the host failed" exit 1 else echo "Updated /etc/hosts" exit 0 fi
No backup file creation there. Be careful, no idea who controls the hosts.txt file.
marmistrz
Mon, 2014/09/15 - 20:38
The backup is created in postinst.
Alexxxlrus
Thu, 2014/07/24 - 11:13
Разаобрался как оно работает ...
Скачивает актуальный хост файл из http://winhelp2002.mvps.org/hosts.txt
и подкладывает в систему.. в результате чего, надо понимать, нельзя получить контент с адресов указанных в хост файле ... как то так...
Mon, 2014/09/15 - 20:39
Это так же работает.
temev
Fri, 2014/02/21 - 00:21
A bit of user guide would be nice. Can't see how this works.
Wed, 2014/07/23 - 17:54
+1!
How to use it ????
Fri, 2014/02/21 - 20:43
Use the script `update-hosts-adblocking`. No options there. Just run as root with internet connection on. It backs up your original hosts to /etc/hosts.bak IIRC.
Fri, 2014/02/07 - 00:30
hi!
A more detailed description can be?
Fri, 2014/02/07 - 00:39
Sure, thought it'd be imported from control :)
Comments
chrm
Mon, 2014/09/15 - 13:05
Permalink
Thats the content of the update-hosts-adblocking script:
----
----
No backup file creation there. Be careful, no idea who controls the hosts.txt file.
marmistrz
Mon, 2014/09/15 - 20:38
Permalink
The backup is created in postinst.
Alexxxlrus
Thu, 2014/07/24 - 11:13
Permalink
Разаобрался как оно работает ...
Скачивает актуальный хост файл из http://winhelp2002.mvps.org/hosts.txt
и подкладывает в систему.. в результате чего, надо понимать, нельзя получить контент с адресов указанных в хост файле ... как то так...
marmistrz
Mon, 2014/09/15 - 20:39
Permalink
Это так же работает.
temev
Fri, 2014/02/21 - 00:21
Permalink
A bit of user guide would be nice. Can't see how this works.
Alexxxlrus
Wed, 2014/07/23 - 17:54
Permalink
+1!
How to use it ????
marmistrz
Fri, 2014/02/21 - 20:43
Permalink
Use the script `update-hosts-adblocking`. No options there. Just run as root with internet connection on. It backs up your original hosts to /etc/hosts.bak IIRC.
Alexxxlrus
Fri, 2014/02/07 - 00:30
Permalink
hi!
A more detailed description can be?
marmistrz
Fri, 2014/02/07 - 00:39
Permalink
Sure, thought it'd be imported from control :)