Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    20
    Trophy Points:
    143
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. MattDees

    MattDees Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    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 :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mynameanu

    mynameanu Member

    Joined:
    Jan 17, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    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

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    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-handler-function-hook-addondomain-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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mynameanu

    mynameanu Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice