I feel really lucky to be writing a post on my blog as my blog was hacked and was turned into a complete disaster.
Few days back, when I opened my blog, I found following error message:
Parse error: syntax error, unexpected $end in /home/content/95/7248995/html/wordpress/wp-settings.php on line 400
I had not played with any of my wordpress setting or config files so I was perplexed to encounte this error message.I had this gut feeling that my website is compromised and some malfunctioning script must have been inputted by hackers. So as an avid forum-person that I am, I asked a simple question describing my error message and code of wp-setting.php file to wordpress forum and within a blink of my eye, I got a reply with definite YES that my site has been hacked and it’s been going through millions of websites/blogs running with WordPress platform.
There are many kind hearted souls in this world who helped me day and night to recover my website, backup my posts/comments, cleaning the malfunctioning scripts and restoring the database and making my blog what it was before. I really cant express my gratitude towards them in words.
So I would like to highlight few points to make sure that your website/blog does not get hacked and you don’t have to go through the pain I went through :
- Frequently change passwords of your Web hosting, WordPress admin and Database. Always choose password which is a combination of upper case, lower case, numbers and special characters as such password is hard to break using Brute Force as compared to simple lowercase/uppercase password. http://codex.wordpress.org/Hardening_WordPress
- Always take backup of your database(posts/comments) and of your wordpress theme setting so that you don’t have to start from scratch if something goes wrong. Take backup at regular intervals – may be every 15 days.
Few useful blogs: http://codex.wordpress.org/Backing_Up_Your_WordPress_Files
If you feel that your blog/website is hacked or compromised:
- you can visit following links for better understanding of your problem:
- After that, uninstall your wordpress application. Install it again.
- Restore your theme from your backup using FTP client. Restore your database of posts and comments.
- Update your wp-config.php file to edit it so that it points to proper database source so that all your posts and comments are visible on your blog. You are all set to writing again
I hope this is helpful to you.
Fortunate to be here