[Dnsmasq-discuss] URL filtering
Karl Goetz
karl at kgoetz.id.au
Wed Mar 18 23:37:42 GMT 2009
On Tue, 17 Mar 2009 07:50:00 -0700
Paul Chambers <dnsmasq at lists.bod.org> wrote:
> It's not that hard to set something up. Though it does require
> multiple pieces.
>
> I have a cron job that runs daily:
> ______________
>
> #!/bin/sh
> wget --quiet \
> --output-document=/etc/dnsmasq.d/adservers \
>
> "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro=0&mimetype=plaintext&useip=10.11.1.2"
> sed -i \
> -e 's/127\.0\.0\.1/10.11.1.2/' \
> -e '/google/ d' \
> -e '/constantcontact.com/ d' \
> /etc/dnsmasq.d/adservers
> /etc/init.d/dnsmasq restart
> ______________
>
> Basically, pull the pgl list from pgl.yoyo.org, fix up the addresses
> it contains, remove some servers I don't want blocked, then restart
> dnsmasq so it picks up the new list.
>
I didnt notice this at first; any particular reason to keep all the
*google* domains?
kk
--
Karl Goetz, (Kamping_Kaiser / VK5FOSS)
Debian user / gNewSense contributor
http://www.kgoetz.id.au
No, I won't join your social networking group
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20090319/ba8cb546/signature.pgp
More information about the Dnsmasq-discuss
mailing list