Results 1 to 4 of 4

Thread: LAMP -- prevent others from accessing public_html

  1. #1
    Join Date
    May 2008
    Beans
    86

    Exclamation LAMP -- prevent others from accessing public_html

    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.

  2. #2
    Join Date
    Nov 2005
    Location
    NEK Vermont
    Beans
    Hidden!
    Distro
    Ubuntu UNR

    Re: LAMP -- prevent others from accessing public_html

    you can use .htaccess to set up authentication requirements. You can block forwarding via your router, so that only localhost has access.

  3. #3
    Join Date
    May 2008
    Beans
    86

    Re: LAMP -- prevent others from accessing public_html

    Quote Originally Posted by spiderbatdad View Post
    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

  4. #4
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: LAMP -- prevent others from accessing public_html

    Just use chmod.
    Code:
    chmod 700 ~/public_html
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •