I want to limit file rights

Hi,

I have some PHP-scripts and they read some files from a special folder, unfortunately it’s possible to see this folder and its files from the Web too,
What to do to stop this?

regards
Dr. W

You can put a file with the name .htaccess in the folder with the content Deny from all. This will make the directory, including all it’s files and subdirectories, inaccessible for everyone.

3 Likes

Thank you, it works.

regards
Dr. W

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.