Allow access To Specific File Types in a Specific Directory

Allow Access To Specific File Types In A Protected Directory

With a large number of people having access to your files there is expected malicious damage and intrusions at any time. This triggers the need to limit access of visitors browsing the files and living only access of what you deem fit in .htaccess.

How?

  • Login to cpanel
  • Click on file manager to open-public html-.htaccess
  • Check the settings for showing hidden files
  • Ensure to have a .htaccess in the folder and if there isn’t create one by clicking on folder on taskbar and name it .htaccess file

 

 

 

 

 

 

  • Click on the file which is .htaccess file and right click on it to edit. If its jpg,odb,jpeg as you desire. Ensure to include the (/)
  • Insert a code that will secure the file (Order Allow, Deny ,Deny from all )
  • change deny from all to allow from all so as to set it specifically secured.
  • Click on save to make changes

Was this article helpful?

Related Articles

Leave A Comment?