wordpress security concern (some measures taken but looking for expert opinion)
-
Hi everyone,
As the topic suggest, i am having some security concern and am looking for advice as i am just a beginner in wordpress so any kind of insight is welcomed.i am currently managing a wordpress site hosted in A2 hosting where the client have stored customer information (mostly contact information) on individual wordpress pages. While i think this might not be the best approach, it’s how the system has been set up for now and they want me to ensure that these data is fully protected from unauthorized access, only the customer (whose information it is) and the admin( my client that is) should be able to access them. i have taken some measures to add security layers for the website in however way possible i can think of like restricted access to files (e.g. wp-config.php) using htaccess rules, blocked bots and search engines using robots.txt (though I know this has limitations) , some security hardening measures i have found like disabling xml-rpc, changing default login url, disable file editing, 2 factor authentications etc. i have tried a lot of things i have found on the internet. for firewall and malware, A2 hosting does claim to provide both (though I haven’t seen a firewall interface in the dashboard, the hosting provider insists it’s active). For a piece of mind, i have setup wordfence for application layer firewall and security.
The client is specifically concerned about securing the database credentials stored in the
wp-config.php
file in plain text. I’ve applied appropriate file permissions and restricted access via.htaccess
, but they want me to explore options for encrypting the database credentials as an extra layer of protection just in case someone got access to that file. my concern is that even if the credentials are encrypted, storing the decryption key in a secure but accessible place (like environment variables or another config file) seems to defeat the purpose since an attacker who gains access to the server could find both the key and the credentials (just my opinion that is, i don’t know if there is a viable solution). I’m looking for expert advice on whether encryption is a viable solution in this case or if there are better methods to protect the database credentials and overall site security for database security and page accessibility (i know we can password protect the pages, but my client doesn’t want that as they want their customers to be able to access them as well without much issue. it is what is it i guess). So any opinions and recommendations are welcomed.
- You must be logged in to reply to this topic.