cPHulk whitelist - add comment when whitelisting IP
Hello,
I would like to know if is it possible to add a comment through the following script:
/scripts/cphulkdwhitelist
Looking at the code, and looking at the documentation, this doesn't seem to be possible.
If this is not possible at the moment, I would like to be able to login to MySQL using the "cphulkd" user, and then add the comment manually to the "ip_lists" table.
To login as that user, can I find the password anywhere?
I tried with the one at /var/cpanel/cphulkd/keys/cpanelpasswd, but that doesn't seem to be it.
In another topic, it is mentioned that the password was in /var/cpanel/hulkdpass, but that file doesn't seem to exist anymore.
Thank you,
Nuno
-
Hello, You can use the create_cphulk_record WHM API 1 command to whitelist an IP address with a comment: whmapi1 create_cphulk_record list_name=white ip=192.168.0.1 comment=George%20Wendt%20flying%20through%20the%20air.
The function is documented at: WHM API 1 Functions - create_cphulk_record - Software Development Kit - cPanel Documentation Thank you.0
Please sign in to leave a comment.
Comments
1 comment