Description
This function returns ModSecurity's™ status for a cPanel account's domains.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
domain |
string |
The domain. |
A valid domain on the cPanel account. |
example.com |
dependencies |
array |
An array of domains that your changes to a selected domain affect. |
An array of valid domains on the cPanel account. |
"arkansas.com", "kansas.com", "nevada.com", "newmexico.com", "texas.com" |
type |
string |
The domain type. |
|
main |
searchhint |
string |
A comma-separated list of domain-related search terms. |
A comma-separated list of string values. |
|
enabled |
Boolean |
Whether ModSecurity is enabled for the account. |
|
1 |