maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Python script to update hosts file for ad blocking (https://talk.maemo.org/showthread.php?t=59027)

jaywink 2010-07-23 19:10

Python script to update hosts file for ad blocking
 
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

marmistrz 2014-03-18 16:33

Re: Python script to update hosts file for ad blocking
 
The link is dead

jaywink 2014-03-23 20:02

Re: Python script to update hosts file for ad blocking
 
Yeah my old blog is dead, dumped it in github here: https://github.com/jaywink/gethosts :)


All times are GMT. The time now is 08:32.

vBulletin® Version 3.8.8