NAME
adfilter.pl - A dynamic DNS-based ad filter
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
-more_hosts_path path to optional single column list of adhosts
-pgl_hosts_refresh use local ad host lists to answer DNS queries with specified ttl (days--defaults to 7)
refreshes pgl hosts using pgl_hosts_url if local copy is older than ttl
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 <terminalfool@yahoo.com>
COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.