NAME
adfilter.pl - Sample interface script to Net::DNS::Dynamic Adfilter
SYNOPSIS
adfilter.pl [options]
Options:
-h -help display this help
-v -verbose show server activity
-d -debug enable debug mode
-host host (defaults to all)
-p -port port (defaults to 53)
-u -uid run with user id
-g -gid run with group id
-bg -background run the process in the background
-etc use /etc/hosts to answer DNS queries with specified ttl (seconds)
-ns -nameserver forward queries to this nameserver (<ip>:<port>)
-pgl -pgl_hosts_url url to single column adhosts text
defaults to http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&&mimetype=plaintext
-pgl_hosts_path path to local copy of adhosts text
-pgl_hosts_refresh local copy refresh value (days--defaults to 7)
-more_hosts_path path to optional single column list of adhosts
Accept the defaults and run in background:
sudo perl adfilter.pl -bg
# you must manually kill this process
See also: perldoc Net::DNS::Dynamic::Adfilter
DESCRIPTION
This script implements a dynamic DNS proxy server for the purpose of filtering advertisements. See Net::DNS::Dynamic::Adfilter for more information.
AUTHOR
David Watson <dwatson@cpan.org>
COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.