Description
This function enables ModSecurity™ for specified domains.
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 |
domains |
string |
Required The domains for which to enable ModSecurity. |
A comma-separated list of valid domains that the cPanel account owns. Important: The authenticated cPanel accountmust own these domains. |
example.com,dallas.example.com,galveston.example.com |
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 list of domain-related search terms. |
A comma-separated list of string values. |
|
enabled |
Boolean |
Whether ModSecurity is enabled on the domain. |
|
1 |