Skip to content

Instantly share code, notes, and snippets.

@prajwal-stha
Created October 29, 2016 01:13
Show Gist options
  • Save prajwal-stha/5462ac5092c9a1eb2003b0de453c028a to your computer and use it in GitHub Desktop.
Save prajwal-stha/5462ac5092c9a1eb2003b0de453c028a to your computer and use it in GitHub Desktop.
Prevent PHP execution on a directory-by-directory basis in WordPress file. Add this file in each directory to prevent PHP execution.
// Lock down PHP execution in that particular directory.
<Files *.php>deny from all</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment