Skip to content

Instantly share code, notes, and snippets.

@yepes
Created December 24, 2014 12:23
Show Gist options
  • Select an option

  • Save yepes/31d027248f48ee9ece39 to your computer and use it in GitHub Desktop.

Select an option

Save yepes/31d027248f48ee9ece39 to your computer and use it in GitHub Desktop.
Disallow accessing php files in wordpress upload directory
#.htaccess to be saved on the root of wordpress upload directory
<FilesMatch "\.(php|php3)$">
Order Deny,Allow
Deny from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment