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.

Login Hook

Discussion in 'cPanel Developers' started by IamRhodesy, Nov 5, 2008.

  1. IamRhodesy

    IamRhodesy Registered

    Joined:
    Nov 5, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello everyone,

    I'm looking to setup my server so that an email is sent every time someone tries to login to an account (be it successfully or unsuccessful)

    I've looked at the API docs and looked into hooks and such, I'm new to Cpanel developing and looking for a starting point really...

    I've seen there are hooks for new account creation and such but nothing relating to a "login attempt"...

    Can anyone point me in the right direction?
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    You could watch for failed logins in /usr/local/cpanel/logs/login_log and react as needed
     
Loading...

Share This Page