PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, September 21, 2022

[FIXED] Where is Safe Place to Save File In Virtual Host Cpanel

 September 21, 2022     cpanel, documents, public-html, virtualhost     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing