The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Whitelist IPs in cphulk using external API call

Discussion in 'cPanel Developers' started by 2mhost.com, May 25, 2014.

  1. 2mhost.com

    2mhost.com Active Member

    Joined:
    Sep 4, 2001
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Is there any way to do the following using API calls (or at least via command line):

    1. flush cphulk DB
    2. whitelist or add IPs to the trusted IP list of cphulk?

    thank you
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can use the following command to whitelist an IP address with cPhulkd:

    Code:
    /scripts/cphulkdwhitelist 1.1.1.1
    As far as clearing the existing entries, you could manipulate the cphulkd database via the command line. For example, to flush the existing brute force and login attempts:

    Code:
    mysql cphulkd
    mysql > delete from brutes;
    mysql > delete from logins;
    Thank you.
     
Loading...

Share This Page