1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-20 13:31:48 +02:00

htaccess version update, including suggestions from Teppo, Netcarver, and several other updates while I was there. See the htaccess.txt file for upgrade instructions.

This commit is contained in:
Ryan Cramer
2019-07-02 14:31:08 -04:00
parent c02420796d
commit 0e00f24004
4 changed files with 228 additions and 72 deletions

10
site-default/htaccess.txt Normal file
View File

@@ -0,0 +1,10 @@
# ProcessWire: Block any PHP files from direct access
<FilesMatch "\.(php|module|inc)$">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>
</FilesMatch>