How To prevent access to multiple file types in .htaccess

How To prevent Access To Multiple File Types in .htaccess

.htaccess is a powerful tool which makes your site to control the number of access to your files. This is just by modifying the file with some codes in .htaccess by just cooperating with both your domain and the server.

Below are guidelines on how to prevent access to multiple files.

  • Login in Cpanel and open the file manager
  • click on settings and choose webroot then click save

 

 

 

 

 

 

 

 

  • Click to open public-html and look for .htaccess then right click and edit.

 

 

 

 

 

 

  • Choose the file to edit and make changes reading as(order allow, Deny

    Deny from all

</Files match>)

  • Click save

Was this article helpful?

Related Articles

Leave A Comment?