I would consider it somewhat safe since that’s where your database connection information is also stored. One could easily ruin your website by deleting your whole database if they had access to that file.
There are a couple of things you can do to increase security:
-
Move the wp-config file one level outside the root. WordPress knows to look for the file there.
-
Make sure your server is hiding your root/parent index. That’s an option you can usually change yourself in cpanel.
Related Posts:
- Is moving wp-config outside the web root really beneficial?
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- Prevent access or auto-delete readme.html, license.txt, wp-config-sample.php
- Generate WordPress salt
- Garbage in beginning of wp-config.php – was this WP installation compromised?
- How does the “authentication unique keys and salts” feature work?
- Securing wp-config leads to sensitive information leak on wp-settings
- Is there any point setting the keys and salts in wp-config.php?
- What’s the point of forbidding access to wp-config.php?
- Where to store OAuth 2.0 client id and secret?
- Config file with no Keys..?
- White screen of death on admin pages after moving wp-config up two levels for security
- My Site keeps crashing due to the wp-confg file being deleted
- Moving wp-config.php outside root folder where we have multiple wordpress websites for enhanced security [duplicate]
- How to change location of wp-config.php to folder or 2 folders up?
- Adding Security Keys?
- Remove hacked code – out of ideas! [closed]
- Secret keys in SCM
- wp-config.php moved above root results in no plugin updates
- wp-config.php file and code injection
- Malware/Permission bug removal?
- How to stop repeated hack on header.php of custom theme? [closed]
- Default installation permissions for wp-config.php
- Move data from wp-config to another file
- SSL Error: unable to get local issuer certificate
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- Why does the URL http://a/%%30%30 crash Google Chrome?
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site?
- Can an attacker use inspect element harmfully?
- Where does Internet Explorer store saved passwords?
- WordPress 4.7.1 REST API still exposing users
- Should I escape wordpress functions like the_title, the_excerpt, the_content
- Why does WordPress need my private ssh key to update?
- When to use esc_html and when to use sanitize_text_field?
- Why does WordPress have more than one salt?
- What is the ideal setup to address security concerns?
- Will there be security updates for 3.1 once 3.2 is released?
- WordPress it’s cleaning a custom query_var to avoid sql injections?
- Can someone explain the use cases of esc_html?
- Tips for finding SPAM links injected into the_content
- Is WordPress vulnerable to the httpoxy?
- Prevent setup-config.php page from appearing when host blocks database
- wp.getUsersBlogs XMLRPC Brute Force Attack/Vulnerability
- Is there a security risk giving someone temporary access to my blog’s code?
- Is /wp-login.php?redirect_to[] exploitable?
- How to properly sanitize/secure a WP Query coming from the front end
- What should I do about hacked server?
- Website is being flooded [closed]
- Upgrading WordPress 4.0 asks for FTP password
- Auth cookie value security risk?
- Security – Shortcode injection attack
- How can I safely use $_SERVER[‘REQUEST_URI’] to avoid XSS?
- How to combat flooding admin-ajax.php?
- Dangers to allowing Access-Control-Allow-Origin: * for Feeds only?
- Moving away from MD5: Where to declare the custom global $wp_hasher?
- Would it be dangerous to send all the wp_options to javascript file?
- Changing Table Prefixes – once done, am I good to go going forward?
- Should I disable directory listing for wp-includes?
- Safety side of storing emoji into database
- How can I safely hide the fact that my website runs on WordPress? [closed]
- How can I display nickname instead username in links
- My WordPress Websites are always under attack
- Is there value in using a wp_nonce for POST requests?
- Can I Remove xmlrpc.php completely?
- Are un-sanitized theme options more vulnerable to malicious scripts than the theme editor?
- Secure WordPress: Change admin
- Changing the default header name
- Is it safe to use a global wp nonce per user instead of a nonce per action?
- Wordfence detects change in wp-admin/includes/upgrade.php
- Will there be security updates for WordPress 4.9.9
- Can a WordPress administrator see other users’ passwords?
- Why my plugins are updating automatically?
- Spam injected in w3 total cache page cache [closed]
- Privilege escalation bugs in 2.9?
- Content-Security-Policy blocks WordPress check boxes from being activated
- Prevent editor from adding script or form
- Finding where a snippet of code is coming from
- wordpress admin security
- Why do people use “admin” username by default? [closed]
- WordPress Database Re-installed (Hacked)
- WordPress Security tools
- Robots.txt file not updating
- Security: Critical backend outside of wordpress
- Advice On How to Backup WordPress
- How can I stop other plugins from using my class’ sensitive methods?
- What are WordPress Current Security Issues in 2017?
- Password-protect feed and make it usable in major aggregators
- WordPress exploited theme is causing high io load on server
- how to find the way they hacked my WP site
- How to set custom validation for WordPress Passwords?
- WordPress still requires FTP information
- is this code properly secured
- nginx + wordpress: Best practices for configuring it to be secure, reliable, and fast? [closed]
- How to get real password (before encrypt) when register a user?
- How do you search for backdoors from the previous IT person?
- Possible to change email address in keypair?
- Why is SSH password authentication a security risk?
- Is wp-cron.php vulnerable to external attacks and how to protect it?
- How to address security vulnerabilities: LUCKY13, BEAST, and BREACH