Created
June 30, 2013 08:44
-
-
Save paulund/5894408 to your computer and use it in GitHub Desktop.
Secure the WordPress uploads directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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