Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Arthur McGowan

If you ever find yourself in a situation where an adblock variation or another addon isn’t feasible — install this as a startup script in your DDWRT router:

Code:
_rogue=127.0.0.1
echo -e “n=1\nwhile ! wget -q -O /tmp/hsts http://www.mvps.org/winhelp2002/hosts.txt ; do\n\t[ \$n -gt 5 ] && break\n\tlet n+=1\n\tsleep 60\ndone\ngrep \”^127.0.0.1\” /tmp/hsts | grep \”^127.0.0.1\” | grep -v localhost | awk ‘{print \”$_rogue\\\t\”\$2}’ | tr -d ‘\\\015’ >/tmp/dlhosts\nrm /tmp/hsts\nkillall -HUP dnsmasq” >/tmp/wh
sh /tmp/wh &

Additional DNSMasq Options script:

Code:
addn-hosts=/tmp/dlhosts


36 posted on 02/24/2013 1:50:28 PM PST by steve86 (Acerbic by Nature, not Nurture™)
[ Post Reply | Private Reply | To 1 | View Replies ]


To: steve86

“If you ever find yourself in a situation...”

Thank you! Good information!


48 posted on 02/24/2013 5:48:59 PM PST by spel_grammer_an_punct_polise (Learn three chords and you, too, can be a Rock Star!)
[ Post Reply | Private Reply | To 36 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson