Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    5

    Default cPanel Hooks

    Can we get some help in scripting with cpanel hooks ? We are trying to do a pattern match while creating addon/parked domains

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Friendly moderator note

    Since this was posted as a reply to a 2.5-year-old thread, I moved it to its own thread in the Developer Discussions area. The original thread was:

    http://forums.cpanel.net/f5/pre-addon-domain-74590.html
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    Quote Originally Posted by mynameanu View Post
    Can we get some help in scripting with cpanel hooks ? We are trying to do a pattern match while creating addon/parked domains
    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
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  4. #4
    Member
    Join Date
    Jan 2006
    Posts
    5

    Default

    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. #5
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default

    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-h...tml#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
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

  6. #6
    Member
    Join Date
    Jan 2006
    Posts
    5

    Default

    Thank you David and Matt. Let me try it.

Similar Threads & Tags
Similar threads

  1. cPanel API 1/2 - Parked domain hooks
    By jdhf99 in forum cPanel Developers
    Replies: 1
    Last Post: 04-22-2011, 04:35 PM
  2. Pre-hooks or similar for cpanel backups
    By jtopjian in forum cPanel Developers
    Replies: 10
    Last Post: 04-28-2010, 11:44 AM
  3. How to use hooks?
    By blargman in forum cPanel Developers
    Replies: 5
    Last Post: 11-18-2009, 10:20 AM
  4. hooks for subdomains
    By apogee in forum cPanel Developers
    Replies: 0
    Last Post: 10-01-2009, 06:35 AM
  5. WHM Hooks help
    By Snoopy in forum New User Questions
    Replies: 2
    Last Post: 11-05-2007, 12:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube