Skip to content

Instantly share code, notes, and snippets.

@BinaryMoon
Created November 21, 2016 12:56
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 BinaryMoon/593d7d6e876c2a794b681eec9b3d89f8 to your computer and use it in GitHub Desktop.
Save BinaryMoon/593d7d6e876c2a794b681eec9b3d89f8 to your computer and use it in GitHub Desktop.
# disable access to wp-config.php
<files wp-config.php>
order allow,deny
deny from all
</files>
# disable public error messages
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
# disable file & directory listings
Options All -Indexes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment