The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

adfilter.pl - command line stub

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
        -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 /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.