Skip to content

Instantly share code, notes, and snippets.

@ihorduchenko
Last active March 29, 2017 14:41
Show Gist options
  • Save ihorduchenko/d32f1ad3abfd7c426085a263f3872b0b to your computer and use it in GitHub Desktop.
Save ihorduchenko/d32f1ad3abfd7c426085a263f3872b0b to your computer and use it in GitHub Desktop.
//insert this code after #END WordPress
<FilesMatch "^.*(error_log|wp-config\.php|php.ini|\.[hH][tT][aApP].*)$">
Order allow,deny
Deny from all
</FilesMatch>
OR
<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