Making a Site Private or Invite Only before official launch?

Discussion in 'PHP' started by lhd333, Mar 2, 2009.

  1. #1
    Hello,

    My team is building a site that we want to be private until the official "public" launch.

    What's the best way to secure a site so that it is kept from prying eyes (and google indexing)?

    I've seen sites that are invite-only and some that bring up a popup box asking for admin credentials.

    Any ideas on the best way to keep things private (other than just working on a private/local server)

    Thanks!
     
    lhd333, Mar 2, 2009 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you are dealing with a limited number of individuals, you can just use .htaccess basic auth. Quick and easy.

    Otherwise, if your site has any sort of login system, just tweak it so that it covers the entire site, and turn off the ability for users to self-register.

    It's not necessary if you've done either of the above, but otherwise you can keep Google out with robots.txt.
     
    SmallPotatoes, Mar 2, 2009 IP
  3. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #3
    Login system will be best for you.
     
    harrisunderwork, Mar 2, 2009 IP
  4. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #4
    If you have never linked to your site, and don't have any google related code running on it then it shouldn't be able to find it so I wouldnt worry too much. However htaccess based auth is what I would use if I had to... or deny any IP thats not yours.
     
    m0nkeymafia, Mar 2, 2009 IP
  5. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #5
    Just password protect the public_html directory from the control panel. Everyone can then log in with the same password and usename.
     
    Colbyt, Mar 2, 2009 IP