8 Ways to Safeguard your WordPress Blog from Hackers

You’ve treated your blog like your baby and nurtured it, complete with pictures and proofread everything you’ve written. You might have an average of 300 posts until date and you’ve invested so much time and sweat in making them perfect.

You also have a decent follower base (100+ followers) and a massive number of comments, at least 5000+ good comments by good people who truly appreciate what you blog about.

The above scenario is an absolute delight, until THIS happened!

We can totally relate to this (not that it’s ever happened to us, touchwood) and to see this happen to your very own blog is a nightmare.

But fear not! We’re here with a set of tips that’ll help you keep your WordPress blog safe and secure 🙂

1. Take a Back-Up!!

Your WordPress database contains every post, every comment and every link you have on your blog. If your database gets erased or corrupted, you stand to lose everything you have written. There are many reasons why this could happen and not all are things you can control. With a proper backup of your WordPress database and files, you can quickly restore things back to normal.

2. Do you have the latest WordPress Version?

You should always make sure that your blog’s version is up to date. WordPress team creates patches to help fix security holes. Follow wordpress feed to find out about the latest updates or you could simply login to your admin.

3. Delete “Admin” User

Just to make hackers work harder, bin this. Create a new user with administration rights, and give the user a nickname (for public display) that is not the same as the username. Then log out, log back in as the new user, and delete the original “admin” user.

4. Install WP Security Scan

This plugin is the really awesome. It’s simple and automates stuff. It will scan your wordpress blog for vulnerabilities and inform you if it finds any malicious codes etc. If the texts are in green in the admin panel then you should be good.

5. Scan Every Theme and Plugin You Want to Install

This is especially important if you download your themes and plugins from other websites online, or if you’re using cracked plugins and themes. You never know when a sleazy programmer will put a little code in your theme or plugin, or when that cracked software you’re downloading will be virus infected.

Don‘t just wait to get hacked before you realize this, so make sure you scan every theme and plugin you want to install on a regular basis; scan them with your own antivirus before you install them.

6. Create a .htaccess File in “wp-admin/”

.htaccess (hypertext access) is the default name of directory-level configuration files that allow for decentralized management of configuration when placed inside the web tree. .htaccess files are often used to specify the security restrictions for the particular directory.

Open a new text file and paste this –

preg_replace(‘/<\/?p( [^>]*)?>[ ]*/’, ‘ ‘, preg_replace(‘/

[ ]*/’, ‘ ‘, ‘

# BEGIN WordPress

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

# END WordPress

‘))

Save the file as .htaccess and upload it to your “wp-admin/” folder, i.e., to http://myblog.com/wp-admin/

7. Hide Your Plugins

If you’re not sure whether they’re hidden or not, navigate to http://myblog.com/wp-content/plugins. If you see a 404 error page, they’re hidden. Otherwise, you’ll see them listed.

8. Install Plugin that Monitors Your Files and Notify You of Changes Immediately

You can also tell your hosting provider to help you configure your server to notify you in case there is any change in any of your files at any time, or you can look for a plugin that makes this easy.

A lot of little changes happen to our blog every day, but the reality is that some of them shouldn’t be. It is important for you to make sure you don’t come to know about any of these changes lately, so make sure you regularly monitor your sever and wordpress installation for any changes.

That’s it. Your blog is more secure, and way less hackable. Go make content!

, , , ,

6 Responses to 8 Ways to Safeguard your WordPress Blog from Hackers

  1. Rahul August 8, 2012 at 1:47 PM #

    thanks Bigrock, for this great tips 😀

  2. Sushant August 10, 2012 at 4:22 PM #

    My website just got hacked few days back by some Arabian hackers, they posted their message on my website and my all data was gone and i have to uninstall my whole WordPress as i was having no more access to it… I also got mail from bigrock stating that they had found some malicious content over my website and if it is not removed within 24Hrs my domain will be barred.

  3. Vivek.r August 13, 2012 at 12:35 PM #

    Hi Sushant,

    We forwarded your request to our support team and they have confirmed that the malware issue associated with your website has been solved. Please check and do let us know in case of any further issues.

  4. Hemendra Kumar Saini August 25, 2012 at 7:38 PM #

    Hey Bigrock when you are going to start dedicated wordpress hosting.

  5. Amreen August 27, 2012 at 12:24 PM #

    Hey Hemendra, we do have Dedicated WordPress Hosting on the cards, but there’s no fixed timeline as yet.

Trackbacks/Pingbacks

  1. Protecting your Wordpress Website | BigRock Blog - February 15, 2014

    […] our previous article we talked about ways to safeguard your WordPress Blog from Hackers, but now we have some more steps to strengthen your website’s security. For you to implement […]

Leave a Reply