Posted by:
CyberSpatium
(---.hsd1.or.comcast.net)
I would move your forum to a folder above your webroot folder, such as localhost/forum. and then place an .htaccess file in your root folder to password proect your WAMP main page. This way, everyone can access your forum, but if they try to access the WAMP main page, they need a password to get access.
go to this site, it will generate an htaccess and htpaswd for you.
[
www.htmlbasix.com]
Enter the user name and password you wish to use. For 'path to password file' use:
C:\apachefriends\xampp
In the 'message for popup' you can enter:
Please log in to access admin panel
now click on the 'Generate' button.
You will be taken to a page with two textboxes displaying some wired sfuff. Copy all the text from the first textbox (the one that starts with AuthType Basic) and open Notepade, and paste the text. Save the file as
.htaccess and save the file in this location:
C:\apachefriends\xampp\htdocs
Now go back to the webpage, and copy the text from the bottom textbox, open Notepad again, and paste the text. Save this as
.htpasswd and save it in this location:
C:\apachefriends\xampp
Now you will have password protection for you WAMP page. try to access localhost, and you will be required to enter your user id and password now. And then goto your [
localhost] and notice you do not need a password to access your forum