Thread
:
Python script to update hosts file for ad blocking
View Single Post
jaywink
2010-07-23 , 19:10
Posts: 46 | Thanked: 26 times | Joined on Dec 2007 @ Helsinki
#
1
Created a small Python script to download the latest hosts file from mvps.org and add the changes (or replace previously added) to /etc/hosts.
Myself I have the script scheduled for daily updates every night with Alarmed, and also on my home Ubuntu via Cron.
[edit: dead blog lnk removed]
More on ad blocking via a hosts file on Maemo:
http://wiki.maemo.org/Ad_blocking
------------
Edit: script in github:
https://github.com/jaywink/gethosts
__________________
http://www.basshero.org
Last edited by jaywink; 2014-03-23 at
20:05
.
Quote & Reply
|
The Following 4 Users Say Thank You to jaywink For This Useful Post:
ceevee
,
Kossuth
,
marmistrz
,
peterleinchen
jaywink
View Public Profile
Send a private message to jaywink
Visit jaywink's homepage!
Find all posts by jaywink