DNS-BL
view release on metacpan or search on metacpan
contrib/blmanager.cgi view on Meta::CPAN
print => 'Print entries',
);
# Produce the basic dashboard
print header;
print start_html('DNS::BL Manager'),
h1('DNS::BL Manager'),
start_form,
p("Choose the list you want to act upon: ",
popup_menu('dnsbl', [ keys %lists ],
{ map { $_ => "$_ list" } keys %lists } )),
p("Choose the action you would like to do: ",
popup_menu('action', [ keys %actions ],
(sort { $a cmp $b } keys %actions)[0], \%actions)),
p("IP address or range (always required): ", textfield('ip')),
p("Return code (for add): ", textfield('code', '127.0.0.2')),
p("Message text (for add): ", textfield('text')),
submit,
end_form, hr;
# Obtain the form parameters
my $dnsbl = param('dnsbl');
my $action = param('action');
( run in 0.570 second using v1.01-cache-2.11-cpan-364913b4093 )