Comment Referrers 0.1


Here’s a small plugin that does a small but useful task. It reports where the people who comment on your blog come from. It then adds a line to the end of your comment notification or moderation emails with that information.

Download: comment-referrers.txt

Install by renaming the file to .php and placing in your plugins folder and activating it on your WordPress plugins page.

Update! Here’s the plugin page for this plugin.

By Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Twitter.

60 replies on “Comment Referrers 0.1”

I notice that referrers aren’t always included – would this only happen if they access the post directly, from a bookmark, or are there other situations I should consider?
I meant to ask, is the plugin not supposed to link to its page over at the official WP repository?
Also, in case you’ve not seen it, there is a support query over at

Chris – referrers aren’t shown when there isn’t one. Lately I’ve noticed an increase in spam comments with a referrer and noticed a pattern in my logs from the IPs of those commenters.
The spammers have a new tool, it’s probably desktop based and probably launches a browser with the post in question. Those comments don’t have referrers.

I didn’t have a specific page ready for the plugin when I created it, so I do need to point it at the right one now. Doesn’t have to be the wporg plugin page though. Thanks for noticing!

HAHAHA, oh yes it will. You came from a Google search for “spam karma 2” “Name” “Email” “Leave a Reply” so I removed your email address (so you can’t leave further comments without moderation) and your url too. Bye bye spammer!

Leave a Reply