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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable site

Discussion in 'General Discussion' started by PatrickVeenstra, Nov 28, 2016.

  1. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    85
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Barcelona
    cPanel Access Level:
    Root Administrator
    Is it possible to disable a site or account? Like suspending it but just ignoring any request at all. Suspending and unsuspending a site takes some time. I just want any requests to be ignored (as if the domains aren't hosted on this server).

    Basically this is to confirm it a specific site/account is responsable for extremely high server load at certain times.
     
    shetuadda likes this.
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    605
    Likes Received:
    94
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hiya,

    Back in my SysAdmin days, to quickly kill a site, we would 'chmod 0 /home/$user/public_html', and all requests to that site would then 403. 403 isn't the best return codes to use, but it worked in a pinch.
     
  3. NOC_Serverpoint

    NOC_Serverpoint Well-Known Member

    Joined:
    Jul 3, 2016
    Messages:
    102
    Likes Received:
    6
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Hi,

    You can create .htaccess file and paste the following code.

    Allowing single IP address access
    ------
    order deny,allow
    deny from all
    allow from 'ip address'

    -----
    Only this authorised IP will be allowed to access the website.
     
  4. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    85
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Barcelona
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page