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!

postkillacct - get domains and park on another account

Discussion in 'cPanel Developers' started by dansgalaxy, Jun 27, 2011.

  1. dansgalaxy

    dansgalaxy Well-Known Member

    Joined:
    Jan 29, 2007
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    I'm looking for a way that I can have a script which automatically parks any domains (main domain, parked domains & addon domains) which are on an account on termination to another cPanel account.

    Basically want it so when delete clients accounts if they have domains still pointing to our DNS we can direct them to a parking/terminated page.

    If possible would be good to check if the domain points to an IP on the server before parking it.

    Any tips on how I can achieve this.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. 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 dansgalaxy,

    The best thing that comes to mind is a prekillacct and postkillacct script hook.
    1) prekillacct to record which domains are about to be removed due to termination
    2) postkillacct to add park domains (to the "default" cPanel account you mention)

    You can add any IP checking or other criteria to those scripts.

    Regards,
    -DavidN
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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