View Full Version : [ubuntu] LAMP -- prevent others from accessing public_html
July 5th, 2008, 06:23 PM
I'm using LAMP to work on web dev. projects. I don't want others to be able to access/view my public_html directory to view my work. How can I prevent this?
Thanks in advance.
July 5th, 2008, 06:53 PM
you can use .htaccess to set up authentication requirements. You can block forwarding via your router, so that only localhost has access.
July 5th, 2008, 08:46 PM
you can use .htaccess to set up authentication requirements.
Where is .htaccess located for xampp? I can't seem to find it. Also, what would I add to .htaccess to add authentication requirements?
July 5th, 2008, 08:47 PM
Just use chmod.
chmod 700 ~/public_html
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.