Skip to content

Instantly share code, notes, and snippets.

@zet-snippets
Created December 1, 2014 22:21
Show Gist options
  • Save zet-snippets/df9a1be59b21d075b492 to your computer and use it in GitHub Desktop.
Save zet-snippets/df9a1be59b21d075b492 to your computer and use it in GitHub Desktop.
.htaccess - secure wordpress
# 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