hgtwn wrote:Is there a way to stop my xampp from acting like a server on www. I want to run xampp just on my computer so i can debug my website without displaying all my work on the internet for anyone to see if they know my ip address. Is there a way to disable the server from doing this?
I have similar needs on my testing server.
Using access control would be a simple and solid way to do it.
1. Open notepad, paste all of this into it:
- Code: Select all
order allow,deny
deny from all
allow from localhost
2. Now save this text-file with any name you like.
3. Rename the file now, to ".htaccess" (yes, the file-name begins with a dot - you might it find it difficult to create, if so, please post so, and we could help you further along)
4. Now put this file in your htdocs directory.
That's all, now you are protected. Now your web-server will serve pages only if you access
http://localhost (and sub-dirs within it) from your own machine alone. Anyone else who tries to visit your IP address will get a 403 (forbidden) or 404 (does not exist) error message.
You can also allow more ppl to access your site as well. For example, you could set it to allow from localhost, and also allow your friend's IP to access your server.
Hoping this helps.....