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.

cPanel Hooks

Discussion in 'cPanel Developers' started by mynameanu, Sep 24, 2010.

  1. mynameanu

    mynameanu Member

    Joined:
    Jan 17, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Can we get some help in scripting with cpanel hooks ? We are trying to do a pattern match while creating addon/parked domains
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
  3. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Which type of hooks are you trying to use?

    There is some documentation on this available at:

    Hooking into cPanel Functionality

    Seeing code always helps :)
     
  4. mynameanu

    mynameanu Member

    Joined:
    Jan 17, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi Matt,

    We are trying for a hook associated with addon domain/subdomain creation. The purpose is to do a pattern match of commonly created phishing domains like wellsfargo, bankofamerica etc.
     
  5. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi mynameanu,

    I think what Matt was getting at was this: There are 3 different types of 'hooks' within the WHM/cPanel product (itemized in the link he provided).

    For your project, you will want to use either a 'function hook' or a 'Custom Event Handler'.

    In this post here, http://forums.cpanel.net/f42/event-...ondomain-mysql-actions-163998.html#post686090, I've describe the difference between the two. The thread eventually focuses on how to write a function hook.

    Check that out, and the documentation link Matt provided. We'll be happy to answer any specific questions you have.

    Best Regards,
    -DavidN
     
  6. mynameanu

    mynameanu Member

    Joined:
    Jan 17, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thank you David and Matt. Let me try it.
     
Loading...

Share This Page