views:

101

answers:

5

I'm just fooling around, learning the ins and outs of web development and I'd like to make my domain private until I'm ready to display it.

What's the best way to do this?

BTW, I have an Apache server on Debian.

A: 

Put it in a hidden directory and have the toplevel site be an empty page. Unless someone knows or guesses the directory name, no one will see your actual site.

WilliamKF
But what happens when you then move the contents of the hidden directory up to the top level? Unless you have been scrupulously careful in the way you code internal links, things will break.
Stephen C
+1  A: 

You can do one of two things that I can think of:

  1. Put it on a internal network that has no public access.
  2. Require a password to see the the site and don't give it to anyone.
James Black
+1  A: 

Other alternatives:

  1. Set up a firewall rule to only allow your IP address(es) access to the site.
  2. Use a subdomain that you don't tell anybody about (this is similar to the password and hidden directory options).
Greg Hewgill
+1  A: 

Quick and easy way would be to tell your computer's firewall to block port 80 (the port webservers use).

Also, depending on your webserver, you could configure it to only serve on localhost.

In Apache, for example, I believe you can edit the httpd.conf file and add Listen 127.0.0.1:80.

BernzSed
+2  A: 

use an .htaccess file to create a user/pass prompt (be warned that this can be bruteforced but it'll keep the general public out)

here's a good article on how to go about implementing this: http://www.freewebmasterhelp.com/tutorials/htaccess/3

Mikey
+1 I have used this in the past. Using port blocking can be tricky if you're not an administrator.
Elizabeth Buckwalter