wordpress – Mr Kirkland http://mrkirkland.com (mainly) Tokyo based developer and founder Mon, 18 Jan 2016 14:58:41 +0000 en-US hourly 1 https://wordpress.org/?v=4.4.2 Wahoo Comment Spam http://mrkirkland.com/wahoo-comment-spam/ http://mrkirkland.com/wahoo-comment-spam/#comments Sun, 07 Oct 2007 07:13:37 +0000 http://www.mrkirkland.com/wahoo-comment-spam/ In my experience comment spam on individual blog/cms (like a wordpress based site) are fairly easy to spot, typically they’ll be riddled with obvious keyword links to viagra, loans, porn etc. Even without some self learning spam detection system, simply blocking comments with more than a couple of links can filter out a lot of […]

The post Wahoo Comment Spam appeared first on Mr Kirkland.

]]>
In my experience comment spam on individual blog/cms (like a wordpress based site) are fairly easy to spot, typically they’ll be riddled with obvious keyword links to viagra, loans, porn etc. Even without some self learning spam detection system, simply blocking comments with more than a couple of links can filter out a lot of this stuff, and of course making all comments go in to a moderation queue ensuring they are manually checked by a human will stop all such comments.

Smarter Spammers

Smarter spam will not be so blatant and attempt to mimmick a genuine comment. This is actually quite easy to do – a generic post along the lines of “Thanks, that’s really useful” would probably sound genuine on the majority of informative posts and if the post doesn’t contain any links then why suspect such a comment? The give away is the commentor’s url, assuming your comment system allows the commentor to add their url (and in particular without rel=”nofollow” on the link) arguably the spammer’s goal has been accomplished – a cheap link back to their site. Even with specific keyword link text, a link on a page relevant to the spammers desired keywords will be a good catch.

How To Stop It

If you are maintaining a single isolated blog, then you may not have a means of picking up on comments like this. Visiting the websites of the commentors can certainly help weed out the obvious offenders, though arguably this is a for of referer spam – getting you to visit the site!

If you maintain a number of sites, then you can spot this sublte breed of comment spam, for example just today I received 2 identical comments to 2 completely unrelated blogs linking to wahoo.com. Furthermore the blogs weren’t english language sites either, so an english comment is a dead give away.

One action that one can take is to make sure you’re using a third party comment spam tool, such as akismet and mark the comments as spam.

I’ve chosen to go a step further and mention that wahoo.com has comment spammed several of the sites I maintain – surprisingly a seemingly legitimate enterprise, not some cheap viagra selling outfit! I wonder if this is the work of a dodgy SEO outfit…

The post Wahoo Comment Spam appeared first on Mr Kirkland.

]]>
http://mrkirkland.com/wahoo-comment-spam/feed/ 1
WordPress SEO cheat sheet http://mrkirkland.com/wordpress-seo-cheat-sheet/ http://mrkirkland.com/wordpress-seo-cheat-sheet/#comments Tue, 25 Sep 2007 05:18:32 +0000 http://www.mrkirkland.com/wordpress-seo-cheat-sheet/ So I’ve recently become aware of some of the SEO boo’s an out of the box wordpress install will inflict on your blog (actually I shouldn’t use inflict, because wordpress is great tool, but I’m using my poetic license :). The key problems are duplicate content and sub optimal page titles. There are probably a […]

The post WordPress SEO cheat sheet appeared first on Mr Kirkland.

]]>
So I’ve recently become aware of some of the SEO boo’s an out of the box wordpress install will inflict on your blog (actually I shouldn’t use inflict, because wordpress is great tool, but I’m using my poetic license :).

The key problems are duplicate content and sub optimal page titles. There are probably a plethora of other articles going in to great detail on this very subject and no doubt a good many plugins, but I just wanted to knock up a quite list so I could keep a note of the key steps and blindly apply them on other installations later on.

Improve Page Titles

We want the page title to be the title of the post, edit header.php and change the title tag as follows:
<title><?php if ( is_home() ) { bloginfo('name'); echo(' — '); bloginfo('description'); } else wp_title('',true); ?>%lt;/title>

Fix Duplicate Content

Insert the follow code in header.php after the title tag – this stops robots indexing the pages where your posts are duplicated:

<?php if((is_home() && ($paged > 2 )) || is_date() || is_category()) {
echo '<meta name="robots" content="noindex, follow, noarchive" />';
} ?>

Improve Permalink Structure

Ultimately, we want to have the page urls for each post as http://www.blogname.com/seo-friendly-post-title/.

  1. Login
  2. Go to Options
  3. Then click on Permalinks
  4. Change the format to ‘Custom’ with the following format
    /%postname%/
  5. Submit

You can also use post slugs to manually tweak the url. E.g. You might want to change:
http://www.blogname.com/really-long-and-diluted-post-title/
http://www.blogname.com/cool-title/

Simply edit the post slug when you are writing a post.

Redirect Canonical To Urls

Your site should be on www.blogname.com or blogname.com – not both.
If your hosting supports it (and is apache based), you can edit your .htaccess file to set up a redirect. Assuming you want www.blogname.com (rather than blogname.com) add the following lines to your .htaccess file in your wordpress dir:


RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www.blogname.com [NC] RewriteRule (.*) http://www.blogname.com/$1 [R=301,L]

NB If you aren’t using url rewriting yet, you should add the following line aswell to enable URL rewriting:
RewriteEngine On

Stop Robots indexing your feeds and other unwanted pages

You can tell the robots (search engine spiders) not to index certain pages, edit your robots.txt filre to include the following:
User-agent: *
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
Disallow: /cgi-bin
Disallow: /search
Disallow: /feed
Disallow: /rss
Disallow: /comments/feed
Disallow: /feed/$
Disallow: /*/feed/$
Disallow: /*/feed/rss/$
Disallow: /*/trackback/$

NBIf your blog is in a subdirectory, prefix the above with the blog directory name, e.g.
/rss => /blog/rss

Install the blog in the top directory or on a subdomain

Optimally your blog is on it’s own domain, so www.blogname.com goes straight to your blog, and it’s not installed in a subdirectory like www.blogname.com/blog. When you install wordpress, be sure to move the extracted files out of the extracted directory and into the top directory of your site.

Alternatively set up a subdomain for your blog e.g. blog.mywebsite.com.

Helpful Plugins and Themes

The K2 extension TripleK theme is used by this site, and automatically applies some of the above fixes.

I’ll add some more ideas some!

Referneces

The post WordPress SEO cheat sheet appeared first on Mr Kirkland.

]]>
http://mrkirkland.com/wordpress-seo-cheat-sheet/feed/ 34
Cannot redeclare register_sidebar() TripleK http://mrkirkland.com/cannot-redeclare-register_sidebar-triplek/ http://mrkirkland.com/cannot-redeclare-register_sidebar-triplek/#comments Wed, 06 Jun 2007 02:39:24 +0000 http://test.mrkirkland.com/cannot-redeclare-register_sidebar-triplek/ I was trying to install JohnTP’s excellent triplek2 theme but became plauged with php cannot redeclare errors. Seemingly there is an overlap in function names for wordpress 2.2 and tripleK 0.93. This may be an underlying conflict with K2, but I didn’t dig that far. The Solution Don’t use wordpress 2.2 – you’ll have to […]

The post Cannot redeclare register_sidebar() TripleK appeared first on Mr Kirkland.

]]>
I was trying to install JohnTP’s excellent triplek2 theme but became plauged with php cannot redeclare errors. Seemingly there is an overlap in function names for wordpress 2.2 and tripleK 0.93. This may be an underlying conflict with K2, but I didn’t dig that far.

The Solution
Don’t use wordpress 2.2 – you’ll have to stick with 2.1 for TripleK theme

The comments on http://www.johntp.com/2007/02/08/triplek2-093/
were closed, so I’ve added the comment here!

The post Cannot redeclare register_sidebar() TripleK appeared first on Mr Kirkland.

]]>
http://mrkirkland.com/cannot-redeclare-register_sidebar-triplek/feed/ 2