[Dnsmasq-discuss] URL filtering
dnsmasq at lists.bod.org
Tue Mar 17 14:50:00 GMT 2009
It's not that hard to set something up. Though it does require multiple
I have a cron job that runs daily:
wget --quiet \
sed -i \
-e 's/127\.0\.0\.1/10.11.1.2/' \
-e '/google/ d' \
-e '/constantcontact.com/ d' \
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've added an alias on my internal network interface for 10.11.1.2
(eth1:0), and then in /etc/httpd/conf.d I've added a file that contains:
ServerAdmin webmaster at bod.org
CustomLog logs/block_access.log combined
RewriteRule ^(.*)$ /blocked.html [L]
Basically, any http accesses to 10.11.1.2 will be served blocked.html,
irrespective of the full URL.
Using squid (or privoxy) as a transparent http proxy is more
sophisticated, and I may switch to that method eventually. But for now,
this works pretty well.
Hope this helps,
conn intel wrote:
> Dear Friends,
> Do it supports URL filtering similar to OPENDNS which has whitelist
> category ? or can anyone suggest how can I achieve it ?
> Kindly let me know if someone need further information.
> Thank you,
More information about the Dnsmasq-discuss