NAME
adfilter.pl - Sample script using Net::DNS::Dynamic::Adfilter
VERSION
version 0.071
SYNOPSIS
adfilter.pl [options]
Options:
-h -help display this help
-v -verbose show server activity
-d -debug enable debug mode
-host host (defaults to local ip)
-p -port port (defaults to 53)
-bg -background run the process in the background
-ns -nameserver forward queries to this nameserver (<ip>:<port>)
-setdns adjust dns settings on local host
DESCRIPTION
This script implements a dynamic DNS proxy server for the purpose of blocking advertisements.
CAVEATS
Installation places this script in /usr/local/bin/
Though the module permits the use of as many lists as you like, it should be sufficient to use one or two lists, accept the defaults and run it in the background:
sudo perl /usr/local/bin/adfilter.pl -bg -setdns
# you must manually kill this process
Edit the adblock_stack, blacklist and whitelist args to your liking.
AUTHOR
David Watson <dwatson@cpan.org>
SEE ALSO
Net::DNS::Dynamic::Adfilter
COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.