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.

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:
    92
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  2. 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 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
     
Loading...

Share This Page