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.

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

    Joined:
    Apr 25, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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

    http://IP/~account/

    or

    http://server.com/~account/


    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? 1.0.0.0-254.254.254.254

    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

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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:
    http://javascriptkit.com/howto/htaccess5.shtml
     
Loading...

Share This Page