Jump to content

Putting a site live but keeping it private till it's ready?


galvin

Recommended Posts

Is there an easy way to have a site live, but only have it visible to me.  In other words, I'll be building the site while it's live and don't want anyone going to it accidentally until it's ready.

 

Before everyone jumps down my throat :), I know all developing/testing should be done locally, but I'm just curious if there is an easy way to keep a site private if it must be developed while live.

 

I guess making a simple login would do it.  But then I'd have to have code on every page that says "if not logged in, don't allow to see this page".  I guess i could put that code in a header include file to avoid having to add it to every page manually.

 

Ok, sorry for that, but I think I just talked myself into how to do it. :)

 

But I'm going to post the question anyway in case there is a better/smarter way.

 

Thanks everyone!

Link to comment
Share on other sites

Thanks both of you!  MarPlo, I did what you said and it blocked me from getting there (which is what I wanted).  Then I added my IP address per your instructions, yet I still can't access it from that IP.  I added...

 

 
order allow,deny
deny from all
allow from XXX.XXX.XX.X

 

(with the X's being my actual IP of course).

 

So just curious if you know of anything that might prevent this from working as intended?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.