Home » Categories » Apache » .htaccess Configuration

Deny direct public access to all files in directory

 

<Files *.*>
Order allow,deny
Deny from all
</Files>

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments (1) Attachments
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed
.htaccess - how to force “www.” in a generic way?
Viewed 1238 times since Sat, Feb 20, 2021
The ’Access-Control-Allow-Origin’ header contains multiple values
Viewed 772 times since Mon, Oct 19, 2020
The ’Access-Control-Allow-Origin’ header with Giant Apache!
Viewed 766 times since Mon, Oct 19, 2020
Deny direct access to all .php files
Viewed 600 times since Wed, Dec 22, 2021
Allow file directory listing using .htaccess
Viewed 607 times since Fri, Nov 26, 2021