How to prevent showing directories and files once visit sub URL | Protect File explorer - 000webhost

0

Hiding directories and files once visit sub URL



After you upload or create directories on file explorer you always never want to share how your structure files to end-user and access your site. But without the properly configurations your files will possible to show to user. Example files structure file image below 

So when user accidentally go to your_web_url/my%20dir user will see your files 


Solution :

Just simply create or copy file index.html or index.php inside main folder. 
As image above once you visit your_web_url/my%20dir it will auto redirect to index.html

Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)

Random Posts