Last active
August 23, 2017 19:42
-
-
Save imelgrat/9316413c19435dc4bb46 to your computer and use it in GitHub Desktop.
Protect .htaccess and .htpasswd files (current and child folders). Full article at: http://imelgrat.me/security/wordpress-htaccess-file-protect/
This file contains 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
# Deny access to all .htaccess files | |
<files ~ "^.*\.([Hh][Tt][Aa])"> | |
order allow,deny | |
deny from all | |
satisfy all | |
</files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment