Howto protect your wordpress blog from comment and trackback spam with Akismet

Welcome,

We will here learn to activate and protect our wordpress blog from comment and trackback spam. We will use the popular Akismet plugin.

akismet

After installing wordpress you automatically get a notice about the available Akismet-plugin under the Plugins-menu and the possibility to upgrade to the latest version of Akismet. Let’s do that.

You can update Akismet-plugin either by clicking the “update now” or do it manually, we will do the latter.

akismet_update_info

“Update now” will open this dialog:

update_now_dialog

However, I will not do the update this way but rather prefer to do it manually…

Manually updating the akismet-plugin:

root@ubuntu01:/usr/src/download# wget https://downloads.wordpress.org/plugin/akismet.3.1.2.zip

install unzip if you don’t have it installed already.

root@ubuntu01:/usr/src/download# apt-get install unzip

Unpack

root@ubuntu01:/usr/src/download# unzip akismet.3.1.2.zip

Set the same owner and group that you have for the wordpress folder.

root@ubuntu01:/usr/src/download# chown -R nobody:www-data ./akismet

move the old akismet plugin away or delete it. I’m moving it to the download folder here and call it akismet_old

root@ubuntu01:/usr/src/download# mv /var/www/creang/wp-content/plugins/akismet/ ./akismet_old

Move the new updated folder in place

root@ubuntu01:/usr/src/download# mv akismet /var/www/creang/wp-content/plugins/

Now when the plugin is in place, Activate the plugin by clicking “Activate”

akismet_activate1

Follow the instructions:

akismet_activate2

Get your API key…

akismet_activate3

Signing up for Akismet with wordpress.com…

akismet_activate4

akismet_activate5

Choose your plan, I chose the basic plan here…

akismet_activate6

Choose wether you want to donate an annual amount or not…

akismet_activate7

Pulling the slider to $0 makes the payment info disappear…

akismet_activate8

After clicking the continue button…

akismet_activate10

click to automatically save your api key…

akismet_activate11

akismet_activate12

All done!

Now, let’s see what happens when a comment is made:

akismet_update5

“Your comment is awaiting moderation”

This comment can be taken care of by the admin/moderator under the comments section…

akismet_update6

Leave a Reply

Your email address will not be published. Required fields are marked *