HTTP::Proxy::BodyFilter::Adnix is a filter module is based on HTTP::Proxy::BodyFilter class that is part of HTTP::Proxy distribution.
This filter tries to detect advertising images into your HTTP requests, and it replaces them with an image of your choice. Detection is done through a set of regular expression you can customize.
If you're wondering where the name Adnix comes from, you should really read the wonderful book Contact by Carl Sagan.
For more detailed information on HTTP::Proxy::BodyFilter, see its documentation on CPAN.
SYNOPSIS
use HTTP::Proxy::BodyFilter::Adnix
# Use default blacklist rules and default placeholder image
$proxy->push_filter(
mime => 'image/*',
response => HTTP::Proxy::BodyFilter::Adnix->new();
);
# OR ...
# You must supply your custom rules for filtering
my $filter = HTTP::Proxy::BodyFilter::Adnix->new(
deny => [ 'spammingserver.com', 'WeSpamYou.org', ... ],
image => 'http://www.mydomain.com/mylogo.png'
);
$proxy->push_filter(
mime => 'image/*',
response => $filter
);
Product's homepage
Requirements:
· Perl