Skip to content

Instantly share code, notes, and snippets.

@voneff
Created February 28, 2018 13:07
Show Gist options
  • Save voneff/fc366f41114ec851ff3d4e305a815afc to your computer and use it in GitHub Desktop.
Save voneff/fc366f41114ec851ff3d4e305a815afc to your computer and use it in GitHub Desktop.
WordPress: Disable PHP Execution in Certain WordPress Directories
# BEGIN Disable PHP Execution
#
# Source:
# http://www.wpbeginner.com/wp-tutorials/how-to-disable-php-execution-in-certain-wordpress-directories
#
<Files *.php>
deny from all
</Files>
# END Disable PHP Execution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment