How To Protect Your WordPress Blog Against Hackers And Spammers

I love WordPress, for the very basic reasons which involve comfort of publishing, managing and securing your blog or work line online. While I have been using WordPress for over 4 years now, I have literally seen the guys at WP updating their platform, and bringing the best to users all over the world. It’s incredible how WordPress in no time has changed the way we create and look up to the wide web, enabling even the not so ‘tech-savy’ people to create their own business lines online. Creating and updating your blog or website using WordPress is one thing, and securing it from spammers and hackers is another, which most webmasters tend to forget. Recently HostGator announced worldwide security threat imposed on WordPress blogs where thousands of WP blogs were compromised and hacked. Of course we don’t want you to lose out on your blog or website, and here is a security measure we recommend you to take, to protect your WordPress blog against hackers and spammers.

The very basic step includes changing your password regularly. This is a well known security measure recommended by all major technology giants like Facebook, Google and Yahoo! and changing log in password regularly is one of the best practices you can follow. Next is to protect your blog against hackers which stand a level ahead from you, i.e they are familiar with attacks like Brute Force and Cross Script Injection. For that, we recommend you to use the following security plugins for your WordPress blog.

  1. Wanguard Plugin:

I have been using Wanguard on this blog for a while now, and the results are simply overwhelming. Wanguard is a security plugin for WordPress available for free of cost at the WordPress plugin store, and can be downloaded from the link below. It is a flawless plugin to combat spam user registrations on your blog just in case you allow multiple authors on your blog. The pluging communicates with its server which holds information of over 34,00,000 sploggers/spammers across the globe. So just in case one of them lands up on your blog, Wanguard will always stay on its guard to protect your blog!

  1. Limit Login Attempts Plugin

This is just another plugin we recommend you to use, to make your WordPress blog secure and spam-free. Now there are times when some hackers attempt brute force attacks on your blog, trying all possible combinations of password on your blog log-in page. Limit Login Attempts plugin will block a particular IP address after it has entered wrong password for a pre-defined number of times. Then, the hacker will not be able to access your blog log in page until the next 24 hours from that IP address. For instance, somebody tried to log-in to our admin area this evening, however after failed attempts, this plugin automatically secured this blog from the hacker. Here’s a sample e-mail I received from this plugin:

16 failed login attempts (4 lockout(s)) from IP: 85.223.208.26

Last user attempted: admin

IP was blocked for 24 hours

The plugin is easy to configure, and let’s you decide the number of failed log-in attempts before it locks down the log-in page. Well, the plugin worked really well for this blog, and we recommend you to try it on your blog as well to protect your WordPress blog against hackers and spammers.

How To Make An Image ‘nofollow’ In WordPress For Ultimate SEO

So I recently started updating this blog with the best of technology content, and in the process forgot to think about image SEO. Gradually first of my posts here got indexed into search engine, and what I see is the ALT-text/Image name of the actual image getting indexed along with my post content in search engines like Google Search. In short, the images I added to my pages or posts here, in or before the first paragraph were getting their ALT-text/name getting indexed along with the post content. The results in the search engine were acceptable, but I would not really call it a good SEO practice. For instance, have a look at the image below. The text newspaper appearing before meta-description of the post is nothing but the ALT-text of the image of a newspaper I uploaded along with the post.

To be clear, this does not mean that I should stop adding ALT-text to images in my posts, rather adding ALT-text is a good SEO exercise. But there are times when you don’t want silly text to appear in the search results. This tutorial is simply for that time!

To start with, adding a nofollow link to images is not a difficult task. You can use both, the automatic WordPress method, or manual method to add nofollow attribute to your images in WordPress.

Option 1:

Adding a nofollow attribute to images in WordPress is really easy. All you need to do is upload an image in your post area (where you write the content), just the way you usually do, and hit the Insert into post button. Once done, hover to the uploaded image and click on the Edit Image button on top left (usually!). Next go to Advanced Settings and under the Advanced Link Settings, find the Link Rel attribute. Simply add “nofollow” to that area (without quotes!) and you’re good to go!

So all you need to do is, Upload image>Edit Image>Advanced Settings>Link Rel>nofollow. This is the easier method, and you can do the same for any number of images you want to.

Option 2:

The second option requires us to manipulate the basic image HTML in the post-composer box. Once you upload the image, just the way you did in Option 1, you need to navigate to the HTML tab of post-composer box, and find the URL the image points to. It is contained withing the Anchor tag (<a>). Simply add a space between ‘a’ and ‘href’ and add rel=”nofollow” in between them (with quotes!). So finally, the code should look like below in the HTML view of your post.