As WordPress is the most popular CMS available on the web but also vulnerable to threats if we don't follow the necessary security measures.
In one of previous guest post, Sarah Rexman mentioned some tips about securing WordPress and in this post I'm gonna share my own experience. While working as freelancer on Upwork, PeoplePerHour and Freelancer; clients always have issues about securing their sites from hackers and ask about how to prevent from future attacks. So consider these points to secure your WordPress site for now and future:
- Keep your WordPress up to date. Latest stable version is 6.6.2 released on 10th September, 2024.
- Keep your all plugins, themes up to date.
- Always keep backup of your database, files and make it update after some interval.
- If site has been compromised, then you must change your salt keys from your wp-config.php file under root directory. You can generate new keys from here. It will force all users to have to log in again.
- Change your all passwords associated with site at regular interval.
- Use strong passwords for all logins. Include the mixture of atleast one uppercase letter, lowercase letter, special character, number.
- Change your WP-Admin username from admin to some other name.
- Change database prefix from wp_ to some other complicated characters to avoid zero-day SQL injection attacks.
- Remove timthumb script if your site running it as its no longer supported or maintained.
- Use plugins after testing it properly. Going through plugin review, Google search will let you know about the reputation of the plugin.
- Keep track of latest visitors through log files for tracking site users. If you find any suspicious activity at any particular time, then logs files might help you to know a bit about the attacker.
- Change permissions for .htaccess, wp-config.php, themes main files to 444.
- Proper file permissions for other files and folders. Best practice is to use 644 for files and 755 for folders.
- Keep your own system virus free.
- Always try accessing the site credentials from your own system only.
- Validate all user inputs like URL, image uploads etc.
- Keep track of WP-Admin, FTP accounts user section for any unauthorized user.
- You can also use Wordfence plugin to monitor from malicious scripts.
- Put some security to the server on which your site is hosted, either it hosted on dedicated or a shared server.
- Keep updated with latest vulnerabilities.
Is your own site get infected with malware/virus, contact me through contact form to get rid of malware with future security implementation. In some cases, site might be hit by pharma hack, you can check it either through site content or by searching your site on Google with query "site:example.com pharma"
Having any further issue? Please comment down!
6 comments
commentsOh my goodness! Incredible article dude! Thank you, However I
Replyam encountering difficulties with your RSS. I don't know the reason why I am unable to subscribe to it.
Is there anyone else getting similar RSS problems? Anybody who knows the solution can you kindly respond?
Thanks!!
Feel free to visit my web site :: Capture His Heart Reviews; ,
@Anonymous: you can subscribe via above form on sidebar or from http://feeds.feedburner.com/learnhack directly. Thanks
ReplyԜߋnderful blog! Do you have anʏ suggestions for asƿiring writers?
ReplyΙ'm hoping too start my own site soon but I'm ɑ little lost on everything.
Ԝould you recommend starting witgh a free ƿlatform like Wordpresѕ or
go foor a ƿaiud option? Theгe are so many options out there that I'm totally confusеd ..
Anny recommendations? Manny thanks!
Also ѵisdit mү web sitе: orquesta el macabeo ()
Have you ever considered creating an e-book or guest authoring
Replyon other blogs? I have a blog based upon on
the same subjects you discuss and would love to have you share some stories/information.
I know my viewers would enjoy your work.
If you are even remotely interested, feel free to send me an e-mail.
Review my site :: insurance public adjuster ()
Very nicely compiled information. All points are valid. Your oDesk profile is very nice.
ReplySome wordpress plugins like "limit-login-attempt" and malware scnning plugins, bullet proof security etc. can help a lot.
I like limit-login-attempt against bruteforce. You can also hide your WP login page with the help of these security plugin.
Great information i found here about how to get your wordpress secured from hackers. i too noticed lots of hackers constantly trying to get enter to my blog. Therefore i have now the changed the login URL . Now there are very less brute force attacks to my blog.
ReplyRegards,
Haider
Thank you for your comment.