Skip to content

Instantly share code, notes, and snippets.

@synCRAUNicity
Forked from yepes/.htaccess
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save synCRAUNicity/faeee9881f6a62cb8694 to your computer and use it in GitHub Desktop.

Select an option

Save synCRAUNicity/faeee9881f6a62cb8694 to your computer and use it in GitHub Desktop.
Prevent anyone from view upload directory in WordPress
#.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