I want to protect a directory from being accessible by anyone on the net, so that all the html files cant be accessed by anyone other than my own php scripts executing on the same server.
For security i have two options, either placing all my files (that i want to keep away from hackers) outside of public_html directory, or make a dir out of the reach of the hackers, that will still be inside the public_html.
I want to ask you which of the ways is better?
Is it possible to make private a directory inside the public_html ? How?
If i place some files outside of public_html (that are just included in the main pages inside public_html), will the little chunks of php work that are placed in the files outside of the web dir?
Thanks
For security i have two options, either placing all my files (that i want to keep away from hackers) outside of public_html directory, or make a dir out of the reach of the hackers, that will still be inside the public_html.
I want to ask you which of the ways is better?
Is it possible to make private a directory inside the public_html ? How?
If i place some files outside of public_html (that are just included in the main pages inside public_html), will the little chunks of php work that are placed in the files outside of the web dir?
Thanks
