Skip to content

Instantly share code, notes, and snippets.

@magefix

magefix/.htaccess Secret

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