Home » Categories » Apache » .htaccess Configuration

Deny direct access to all .php files


<Files *.php>
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
The ’Access-Control-Allow-Origin’ header contains multiple values
Viewed 792 times since Mon, Oct 19, 2020
.htaccess - how to force “www.” in a generic way?
Viewed 1258 times since Sat, Feb 20, 2021
Allow file directory listing using .htaccess
Viewed 629 times since Fri, Nov 26, 2021
Deny direct public access to all files in directory
Viewed 516 times since Wed, Dec 22, 2021
The ’Access-Control-Allow-Origin’ header with Giant Apache!
Viewed 784 times since Mon, Oct 19, 2020