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"
Notes
POSTED Friday November 28th
![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 Executingsleep 5test -s /tmp/dlhostsif [ $? == 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/dlhostsficru a Gethosts "45 23 * * 5 /tmp/dlhosts"](http://27.media.tumblr.com/BphUNOIxfguj9f3iAVNjFDg2o1_500.png)