Skip to content

Instantly share code, notes, and snippets.

@imelgrat
Last active August 23, 2017 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imelgrat/9316413c19435dc4bb46 to your computer and use it in GitHub Desktop.
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/
# 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