Skip to content

Instantly share code, notes, and snippets.

@roborracle
Created April 1, 2019 16:43
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 roborracle/2e9b696a7bf20534d36d85ae6499e5ba to your computer and use it in GitHub Desktop.
Save roborracle/2e9b696a7bf20534d36d85ae6499e5ba to your computer and use it in GitHub Desktop.
Keep those who are testing your security fences at bay by disallowing unauthorized access to your wp-config.php file. Add the following code to your .htaccess file
<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