Last active
August 17, 2022 05:14
-
-
Save Phlow/0cbc56bb299447c7d13ec9c23ef2bc69 to your computer and use it in GitHub Desktop.
Harden your WordPress and hide wp-config.php and .htaccess for attackers.
This file contains 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