1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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