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.

Restricting public access for one account

Discussion in 'General Discussion' started by xioplox, Jul 19, 2010.

  1. xioplox

    xioplox Member

    Oct 17, 2009
    Likes Received:
    Trophy Points:
    I'm using account on my VPS server just for testing and have one domain and two sites on the account.

    As I don't want the sites on this particular account to be accessible by others, I'm using the domain root .htaccess file to block all IP's except my own home network IP.

    I have a custom 403 error message in the root for the only domain on the account, displaying that this is a private site.

    My question is, if this is very much wrong method and must be done more properly?

    If it's somewhat ok, I might have a little problem though, as the account error log is displaying the VPS server accounts shared IP as "client denied" for the WordPress wp-cron.php file.

    What comes to my mind is to exclude this VPS server accounts shared IP if that would be appropriate, or what?

    This is the deny rule in the .htaccess file (without my own ip adress):

    <Limit GET POST PUT>
     Order Deny,Allow
     Deny from all
     Allow from 
    ErrorDocument 403 /nameofcustomerrormess.html
    <Files /nameofcustomerrormess.html>
     Order Allow,Deny
     Allow from all

    I'm on: cPanel 11.25.0-R46156 - WHM 11.25.0
    #1 xioplox, Jul 19, 2010
    Last edited: Jul 19, 2010

Share This Page