Created
May 26, 2019 10:44
-
-
Save asika32764/7c91def4809da11d331bb7714ca0f470 to your computer and use it in GitHub Desktop.
.htaccess to prevent php access except index.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Files *.php> | |
Order Deny,Allow | |
Deny from all | |
Allow from 127.0.0.1 | |
</Files> | |
<Files index.php> | |
Order Allow,Deny | |
Allow from all | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment