Created
December 1, 2014 22:21
-
-
Save zet-snippets/df9a1be59b21d075b492 to your computer and use it in GitHub Desktop.
.htaccess - secure wordpress
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
# secure wordpress | |
php_flag display_errors Off | |
Options -Indexes | |
# deny access to .htaccess | |
<Files ~ "^.*\.([Hh][Tt][Aa])"> | |
order allow,deny | |
deny from all | |
satisfy all | |
</Files> | |
# disable xmlrpc | |
<Files xmlrpc.php> | |
Order Deny,Allow | |
Deny from all | |
</Files> | |
# deny access to anyone surfing for wp-config.php | |
<files wp-config.php> | |
order allow,deny | |
deny from all | |
</files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment