NAME
adblock.pl - Sample script using App::DNS::Adblock
SYNOPSIS
adblock.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
-loopback set specific loopback address (defaults to 127.0.0.1)
DESCRIPTION
This script implements a dynamic DNS proxy server for the purpose of blocking advertisements.
CAVEATS
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 adblock.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
App::DNS::Adblock
COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.