Jump to content

apache deny access to php scripts


theironchef

Recommended Posts

does anyone know how (htaccess possibly?) to deny a php script from accessing a parent directory. Heres the oflder structure

/Home
  ----> /User 1/
            ----->index.php
            ----->image.jpeg
  ----> /User 2/
            ----->index.html

I do not want index.php from user 1 to be able to open its parent diectory ".." and then end upopenidn user 2's files... anyone know how to prevent this? ???
Link to comment
https://forums.phpfreaks.com/topic/28555-apache-deny-access-to-php-scripts/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.