Skip to content

Instantly share code, notes, and snippets.

@szbl
Created April 17, 2013 14:06
Show Gist options
  • Save szbl/5404571 to your computer and use it in GitHub Desktop.
Save szbl/5404571 to your computer and use it in GitHub Desktop.
Stop direct PHP execution via URL in directories like /wp-content/uploads/, certain plugins, etc.
<Files *.php>
deny from all
</Files>
@szbl
Copy link
Author

szbl commented Apr 17, 2013

This should stop remote PHP code execution. Ideally, this should be in the /wp-content/ directory and have affect recursively. There is no reason for PHP to be executed via URL in this directory within a WordPress installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment