Skip to content

Instantly share code, notes, and snippets.

@Sharifur
Created November 12, 2024 05:51
Show Gist options
  • Save Sharifur/d5234dbabb56ba51c0eeef7d330fdc29 to your computer and use it in GitHub Desktop.
Save Sharifur/d5234dbabb56ba51c0eeef7d330fdc29 to your computer and use it in GitHub Desktop.
prevent executing php file in a particular folder
<FilesMatch "\./(php|php5|php7|php8|phtml)$">
Deny from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment