Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Oct 2016
    Thanked 0 Times in 0 Posts

    Limit a directory only accessible to local host.

    Hi, I need to limit a directory can only be accessed from localhost and block any tips other than
    In my .htaccess looks like this
    <Directory “/localhost/protected directory...”>
    Require all granted
    Require ip

    I keep getting Internal Server Error.
    Even if I just put in only

    "With nothing in between"

    I still get the same error, what am I doing wrong? I set up the server on macOS 10.12.1, the web root path is /Library/WebServer/Documents
    Last edited by rich1812; 12-08-2016 at 01:15 AM.


Tags for this Thread

Posting Permissions

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