CPHulk read history reports using the command line or API
Hi,
I get daily calls about CSF and CPHulk and now I want to automate reading and removing entries. CSF is well supported via the command line. CPHulk not it seems?
Reference documentation for CPHulk: cPHulk Management on the Command Line | cPanel & WHM Documentation
I need to read the history reports.The only commands listed are:
/usr/local/cpanel/scripts/cphulkdwhitelist 192.0.2.0
/usr/local/cpanel/scripts/cphulkdblacklist 192.0.2.0
The reason I want to read the history reports is because I first want to determine the cause for listing before I use the command line command to whitelist it.
Any tips?
-
whmapi1 | grep cphulk
- likely that one of them will give you the information you need.0 -
Fantastic thanks so much I see prime candidates there that looks like exactly what I need: > get_cphulk_brutes > get_cphulk_excessive_brutes > get_cphulk_failed_logins > get_cphulk_user_brutes 0 -
Thank you for the confirmation @eugenevdm.host. I am glad to hear that the advice @LucasRolff provided answered your questions! The API tools for cPhulk are a great way to manage this through the command line. We do have documentation for each to help you familiarize yourself with them. I hope the following index is of assistance to you while you explore these options. 0
Please sign in to leave a comment.
Comments
3 comments