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!

Restricting user access to domain

Discussion in 'General Discussion' started by wonkavator, Jan 12, 2007.

  1. wonkavator

    wonkavator Registered

    Dec 31, 2006
    Likes Received:
    Trophy Points:

    I am building a site and I only want users from certain domains to be able to access my site. How can this be accomplised...

    For example: let's say that I have my domain as and I only want people from to be able to have access to the website. xyzcompany is global so they have many locations around the world but will access my site only through their secure company website of which they have to login to get to my site. does that make sense.

    I only want users of xyzcompany to access my site.

    Thank you so much in advanced I am not really sure how to do this in cpanel
  2. pjman

    pjman Well-Known Member

    Mar 22, 2003
    Likes Received:
    Trophy Points:
    New York
    Just use basic htaccess files

    or You can use the password protected directory function within Cpanel. Just click on the directory you want to protect. I'm not sure if it let's you protect the root directory, but you can always create an htaccess your self.

    If you have a firewall, you could allow IP only access too.

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