Issue
I will develop website that saving documents in Cpanel. If I save documents in public html people just access through http://example.com/file.doc document will get accessed. Where do I put documents so only my web application can access the documents? Is it right to place the documents in directory before public_html? Thank you.
Solution
Yes, You need to save that files outside the public_html directory.
OR you can create password protect directory for your documents so that nobody can access that without user name and password
Please check it at : https://documentation.cpanel.net/display/1140Docs/Password+Protect+Directories
Answered By - 24x7servermanagement Answer Checked By - Katrina (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.