Skip to content

Instantly share code, notes, and snippets.

@asika32764
Created May 26, 2019 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asika32764/7c91def4809da11d331bb7714ca0f470 to your computer and use it in GitHub Desktop.
Save asika32764/7c91def4809da11d331bb7714ca0f470 to your computer and use it in GitHub Desktop.
.htaccess to prevent php access except index.php
<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