Skip to content

Instantly share code, notes, and snippets.

@shield-9
Created April 3, 2014 13:59
Show Gist options
  • Select an option

  • Save shield-9/9954908 to your computer and use it in GitHub Desktop.

Select an option

Save shield-9/9954908 to your computer and use it in GitHub Desktop.
Protect DB information from human error in server configuration settings
<Files "wp-config.php">
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)$ - [R=404,L]
</IfModule>
<IfModule !mod_rewrite.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
@shield-9
Copy link
Author

shield-9 commented Apr 3, 2014

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment