.pdf)
WHM Plugins
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | DenyIp::adddenyip( ip, quiet ) |
| Description: | Add a deny from IP line to the account's public_html/.htaccess file. This function requires access to the 'ipdeny' feature. This function is not available in demo mode. |
| Parameters: | |
| ip (string) | |
| The IP address to deny. This parameter takes the following formats: 192.168.0.1 Single IP Address 192.168.0.1-192.168.0.58 Range 192.168.0.1-58 Implied Range 192.168.0.1/32 CIDR Format 10. Implies 10.*.*.*. |
|
| quiet (boolean (optional)) | |
| If set to 1, this parameter will suppress error messages. This value defaults to 0. | |
| Returns: | |
If successful, the output should resemble the following: Users from the IP address(s) 192.168.0.1 will not be able to access your site. If the function encounters an error, it will be printed unless 'quiet' is true. |
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | DenyIp::deldenyip( ip ) |
| Description: | Remove a deny from IP line in the account's public_html/.htaccess file. This function requires access to the 'ipdeny' feature. This function is not available in demo mode. |
| Parameters: | |
| ip (string) | |
| The IP address to remove. This parameter takes the following formats: 192.168.0.1 Single IP Address 192.168.0.1-192.168.0.40 Range 192.168.0.1-40 Implied Range 192.168.0.1/32 CIDR Format 10. Implies 10.*.*.*. |
|
| Returns: | |
The output should resemble the following: The IP address 192.168.0.1 will now be able to access your site. |