Title: wp-config.php
Last modified: December 5, 2017

---

# wp-config.php

 *  Resolved [michael1408](https://wordpress.org/support/users/michael1408/)
 * (@michael1408)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/wp-config-php-3/)
 * Hello,
 * I am reading an article on wordpress.com entitled “[Hardening WordPress](https://codex.wordpress.org/Hardening_WordPress)”
   and they cover how to protect wp-config.php, my quesiton is does this plugin 
   protect wp-config? is it the free or premium version?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/wp-config-php-3/#post-9758087)
 * Hi,
    Wordfence will protect against attempts made to exploit any vulnerability
   in one of your installed plugins/themes to download/read wp-config.php file, 
   so besides keeping your plugins/themes up to date, I recommend restricting [WordPress file permissions](https://www.wordfence.com/learn/how-to-restrict-wordpress-file-permissions/)
   on your site and [never editing wp-config.php directly on the server](https://www.wordfence.com/learn/how-to-harden-wordpress-sites/#securing-your-database).
 * Thanks.
 *  Thread Starter [michael1408](https://wordpress.org/support/users/michael1408/)
 * (@michael1408)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/wp-config-php-3/#post-9762378)
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp-config.php’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [wp-config](https://wordpress.org/support/topic-tag/wp-config/)

 * 2 replies
 * 2 participants
 * Last reply from: [michael1408](https://wordpress.org/support/users/michael1408/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/wp-config-php-3/#post-9762378)
 * Status: resolved