Just thought i'd add my current script to this thread. After discovering several domains that weren't blocked i got fed up with constantly editing the script file on my phone so i've not got my own hosts file additions on my dropbox account. I can add domains to this list and they get added to the hosts file. Credit goes to "XlAfbk" for the original script.
<MY id> and <myfile> would obviously need to be changed (just get the public url for the file via dropbox)
<MY id> and <myfile> would obviously need to be changed (just get the public url for the file via dropbox)
Code:
/system/xbin/curl -so /data/data/hoststmp. http://hosts-file.net/ad_servers.asp
/system/xbin/curl -s http://winhelp2002.mvps.org/hosts.txt >> /data/data/hoststmp
/system/xbin/curl -s http://dl.dropbox.com/u/<MY id>/<myfile>.txt >> /data/data/hoststmp
cat /data/data/hoststmp | cut -d'#' -f 1 | grep -v gravatar.com | grep -v wordpress.com | awk NF | awk '{sub(/\r$/,"")};1' | sed 's/ \|\t/ /g' | sort | uniq -u > /system/etc/hosts
rm /data/data/hoststmp