PDA

View Full Version : [ubuntu] LAMP -- prevent others from accessing public_html



JimmyJim
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.

spiderbatdad
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.

JimmyJim
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?

Thanks

Dr Small
July 5th, 2008, 08:47 PM
Just use chmod.

chmod 700 ~/public_html