Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matteomattei/3c31ad6f07c821e0b230 to your computer and use it in GitHub Desktop.
Save matteomattei/3c31ad6f07c821e0b230 to your computer and use it in GitHub Desktop.
htaccess to protect wp-content/uploads folder
<FilesMatch "\.(php|php5|php4|php3|pl|py|sh|cgi)$">
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