nickadam


YAY addbocking on everything on my LAN. I just added this startup 
script to my DD-WRT router that downloads a hostfile that contains
 a list of all known adservers. Then those name lookups are redirected
 to 0.0.0.0 which immediatly times out. WOOT!

logger WAN UP Script Executing
sleep 5
test -s /tmp/dlhosts
if [ $? == 1 ] ; then
echo -e "#!/bin/sh\nwget -O - http://www.mvps.org/winhelp2002/hosts.txt _
| grep 127.0.0.1 | sed -e '2,\$s/127.0.0.1/0.0.0.0/g' -e 's/[[:space:]]*#.*$//' > _
/etc/hosts\nlogger DOWNLOADED _
http://www.mvps.org/winhelp2002/hosts.txt\nkillall -1 dnsmasq" > _
/tmp/dlhosts

chmod 777 /tmp/dlhosts
/tmp/dlhosts
fi
cru a Gethosts "45 23 * * 5 /tmp/dlhosts"


To Tumblr, Love Metalab