Can we get some help in scripting with cpanel hooks ? We are trying to do a pattern match while creating addon/parked domains
Can we get some help in scripting with cpanel hooks ? We are trying to do a pattern match while creating addon/parked domains
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
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![]()
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.
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