Skip to main content

Script to automatically suspend inactive accounts

Comments

4 comments

  • MilesWeb
    ]/https://github.com/ziGuy/cPanel This script will go through all cpanel accounts and check whether each account is active according to dns records (a and mx), resolving from an external dns server. Please note that if an account is using an external redirection like cloudflare, it will be considered as inactive. ns records are NOT being checked. In the end of the scanning you can choose to automatically suspend all, inactive accounts, and in the next run you can choose to terminate those. You can also terminate only suspended accounts that have been suspended 3 month ago. 26031

    Thank you for the share. Cheers. BTW, will it check for the Addon domains as well ? At times, the main domain does not resolve to server IP whereas the Addon domain do point to server IP address.
    0
  • ziGuy
    My pleasure. Yes it will check for all types: subdomains, addon domains and parked domains. If at least one of the above resolves to one of the server's IP(s), the account will be considered as active account.
    0
  • MilesWeb
    ]My pleasure. Yes it will check for all types: subdomains, addon domains and parked domains. If at least one of the above resolves to one of the server's IP(s), the account will be considered as active account.

    That's a great feature. Worth giving it a try. Will post output of the plugin once I try it. Will help during the server audits.
    0
  • cPanelMichael
    Hello :) In addition to the custom script, you may also want to submit a feature request to have this functionality included with cPanel natively: Submit A Feature Request Thank you.
    0

Please sign in to leave a comment.