Skip to content

Instantly share code, notes, and snippets.

@paulund
Created June 30, 2013 08:44
Show Gist options
  • Save paulund/5894408 to your computer and use it in GitHub Desktop.
Save paulund/5894408 to your computer and use it in GitHub Desktop.
Secure the WordPress uploads directory
# Secure /uploads/ directory from unwanted file types
<Files ~ ".*..*">
Order Allow,Deny
Deny from all
</Files>
<FilesMatch ".(jpg|jpeg|jpe|gif|png|tif|tiff)$">
Order Deny,Allow
Allow from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment