Wordpress Hacked

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


If you feel that your blog/website is hacked or compromised:

  • 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 🙂


Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>