Skip to content

Instantly share code, notes, and snippets.

@ayhanbaris
Created September 9, 2022 16:52
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 ayhanbaris/31b7e57d5e35cfacf563e27af7f764bf to your computer and use it in GitHub Desktop.
Save ayhanbaris/31b7e57d5e35cfacf563e27af7f764bf to your computer and use it in GitHub Desktop.
disable php execution on users content upload folders
#we dont want executable php files here
RemoveHandler .php .phtml .php3
RemoveType .php .phtml .php3
php_flag engine off
<Files *.php>
deny from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment