Make directory private except for localhost

Discussion in 'Apache' started by fffdp4ever, Aug 31, 2017.

  1. #1
    Hi! This is my first post. I'm currently developing a project on a already-existent codebase, so I cannot make more changes on what has been done.
    I need this simple thing:
    - there are some directories where are stored private user' files. I need to make this directory accessible to only PHP scripts (only localhost is allowed eventually). I tried with a lot of htaccess rules I found on the internet, but none of them allowed for PHP scripts to access those directories.

    Can you give me an advice?
    Thanks in advance!
     
    fffdp4ever, Aug 31, 2017 IP