Skip to content

Instantly share code, notes, and snippets.

Created Mar 25, 2021
What would you like to do?
.htaccess to place inside /wp-content/uploads/
<FilesMatch "\.(php|php\.)$">
Order Allow,Deny
Deny from all
<FilesMatch "\.(php|phtml|php1|php2|php3|php4|php5|pl|py|jsp|asp|html|htm|shtml|sh|cgi|suspected)$">
Order Allow,Deny
deny from all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment