Description

This function checks whether hotlink protection is enabled.


Examples 


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

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

<cpanel Module="Mime::linkenable()">
cpapi1 --user=username Mime linkenable

enabled

Parameters

This function does not accept parameters.

Returns

  • enabled — Hotlink protection is enabled.
  • disabled — Hotlink protection is disabled.