Description

This function lists blocked IP addresses.

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$list_denyip = $cpanel->api1('DenyIp', 'listdenyip') ); // Call the function.

 

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $list_denyip = $cpliveapi->api1('DenyIp', 'listdenyip'); # Call the function.

 

<cpanel Module="DenyIp::listdenyip( $FORM('match value','method','msgpart','dest') )">
cpapi1 --user=username DenyIp listdenyips

btw10.10.10.10\n10.10.10.11\n10.10.10.0/24\n

   

Parameters

This function does not accept parameters.

Returns

A newline-separated list of IP addresses and CIDR-format ranges that the website blocks.