I'm not sure if this is the correct place to post this question, my apologies if it is in the wrong place.
In short, I have the following directory:
What I need is an .htaccess file that I can place in the parent directory that won't let any php files in childDirectoryOne access either parentDirectory or childDirectoryTwo, to either scan the directory, execute files, or even read the contents of the files. It should restrict scripts to execute/read/write ONLY in the childDirectoryOne and children directories.
1 Replies - 3560 Views - Last Post: 17 February 2013 - 07:13 PM
Replies To: .htaccess file that stops php files from accessing parent directory
Re: .htaccess file that stops php files from accessing parent directory
Posted 17 February 2013 - 07:13 PM
As an added bit of information. It is okay if there needs to be a .htaccess file in the child directory to override the settings from the .htaccess file in the parent directory. I've just been having a tough time finding information, because it seems that all of the tutorials on .htaccess files are for mod_rewrites.
Page 1 of 1