-
-
Save ValeriiVasyliev/f087f879e63d51b5241653e8984df147 to your computer and use it in GitHub Desktop.
Harden your WordPress and hide wp-config.php and .htaccess for attackers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prevent wp-config.php and .htaccess | |
# from being accessed use this code | |
<Files wp-config.php> | |
order allow,deny | |
deny from all | |
</Files> | |
<Files .htaccess> | |
order allow,deny | |
deny from all | |
</Files> | |
# Prevent Directory Browsing | |
Options All -Indexes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment