Skip to main content

cPHulk auto add IP to blacklist

Comments

5 comments

  • 24x7server
    Hello :), You will have to use following command to block that IP
    MOD EDIT - This is Not Accurate
    Here are the command variables list :
    0
  • gnetwork-cp
    Hi, thanks for that. This is the first time I've seen this as possible. I read that documentation which mentioned %ip%, but also noticed the different variable on WHM cPHulk Brute Force Protection page: ----------------------------------------------------------------------------------- Command to Run When an IP Address Triggers a One-Day Block The following variables may be used in commands: %exptime% - The Unix time when brute force protection will release the block %max_allowed_failures% - Maximum allowed failures to trigger this type (excessive or non-excessive failures) %current_failures% - Number of current failures %excessive_failures% - 0 (not an excessive login failure) or 1 (an excessive login failure) %reason% - The reason for the block %remote_ip% - The blocked IP address %authservice% - The last service to request authentication (for example, webmaild) %user% - The last username to request authentication %logintime% - The time of the request %ip_version% - The IP version (4 or 6) ----------------------------------------------------------------------------------------- That's why I was'nt sure. Can you please confirm its definitely %ip% and not %remote_ip%. Thankyou
    0
  • cPanelMichael
    Hello :) I've tested and confirmed the correct value to use is:
    %remote_ip%
    I've opened a case with our documentation team to have them correct the reference to "%ip%" in our documentation. Thank you.
    0
  • cPanelMichael
    To update, the document now reflects the correct variable. Thank you.
    0
  • xhagentech
    /scripts/cphulkdblacklist %ip% - tested working and please dont forget the refresh the entire page
    0

Please sign in to leave a comment.