I installed xampp
on a comupter (for example A) in a network, I set IP for apache
so users in the network are able to access the localhost
on the machine A. I installed a web project in htdocs
directory so users can see that page using IP_OF_MACHINE/project
. the problem is they can see IP_OF_MACHINE/xampp
or IP_OF_MACHINE/phpmyadmin
page while I want them to be able to see only the project
not other pages. How do I can achieve this?
Asked
Active
Viewed 9,090 times
4

M a m a D
- 1,938
- 2
- 30
- 61
-
1You can do that by setting a password to XAMPP folder by accessing `http://localhost/security/index.php` – Sarvap Praharanayuthan May 28 '14 at 16:54
-
I did this but there was no option to set password for phpmyadmin, the password works only for xampp – M a m a D May 28 '14 at 17:00
-
1This is because your `root` user have no password. When you set a password for `root`, login screen will be shown for phpmyadmin too. – Sarvap Praharanayuthan May 28 '14 at 17:01
1 Answers
8
You can create a .htaccess file in the folders you don't want to be public and inside the .htaccess write the following :
order allow,deny
allow from 127.0.0.1
deny from all

MKT
- 655
- 1
- 6
- 18