Description
This function configures Leech Protection on a cPanel account.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
| 
 Parameter  | 
 Type  | 
 Description  | 
 Possible values  | 
 Example  | 
| 
 dir  | 
 string  | 
 Required The directory to query.  | 
 A valid absolute directory path.  | 
 /home/example/public_html/newdir  | 
| 
 item  | 
 string  | 
 Required The type of item to query.  | 
  | 
 url  | 
| 
 type  | 
 string  | 
 Required The output type.  | 
  | 
 uri  | 
Returns
| 
 Return  | 
 Type  | 
 Description  | 
 Possible Values  | 
 Example  | 
| 
 reason  | 
 string  | 
 A reason for failure. Note: This function only returns a reasonvalue if it failed.  | 
 A string that describes the error.  | 
 This is an error message.  | 
| 
 result  | 
 Boolean  | 
 Whether the function succeeded.  | 
  | 
 1  | 
