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!

2 Part IP ?? Website ONLY viewable on 1 IP & IP banning

Discussion in 'General Discussion' started by vbIce, Jul 16, 2004.

  1. vbIce

    vbIce Registered

    Apr 25, 2004
    Likes Received:
    Trophy Points:
    Part 1

    How do I setup an account so that it is ONLY viewable on 1 IP ? There is NO Domain name associated with this account and never will be. This is for an extremely private Software Development Group. I do NOT want this account viewable on any other IP on the server and vice versa no other account viewable on this IP. In other words I do NOT want this to be able to be don on another IP on my server



    the account should ONLY be viewable on it's OWN IP using the /~account/login/...... etc

    Part 2

    Next one I want to BAN EVERY IP in the world from even being able to access this IP in any means. I am figuring that I could place the IP's that are allowed to connect into the allowed hosts, just looking for the EASIEST way of blocking basically EVERY other ip in the world.

    Obviously I need to maek sure this is done right or I can block the world from seeing hte rest of the server thus I am asking here.

    Would this not work in hte Deny hosts?

    Obviously making sure that I have certain IP's already inthe Allowed hosts etc.

    Thanks in advance for the help.
    #1 vbIce, Jul 16, 2004
    Last edited: Jul 16, 2004
  2. chirpy

    chirpy Well-Known Member Verifed Vendor

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    Go on, have a guess
    Well, you could simply achieve the first one by setting up a non-existent domain name for the cPanel account on a dedicated IP address. Since the domain will never resolve, the only way to access the site will be by the IP address.

    The second option can be easily achieve using a .htaccess file at the web root. You don't need to block everyone, all you need to do is to allow only the IP addresses that you want. You should be able to work it out from:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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