JerryJee

记录生活点滴.

wordpress 防 Spam 的终极办法:Comments Link Redirect

Posted on 十二月 6th, 2010 by Jerry Jee

国内垃圾留言横行,作为国内最大的搜索引擎百度对此负有不可推卸的责任,由于百度不支持 rel="nofollow" 属性,造成了 Spammer 恣意妄为,肆意到处留言,根据 Akismet 这个防垃圾留言插件的统计,2008 年12月一个月就收到 4000 多条垃圾留言。并且如果如果这些外链很多都是链接到垃圾站,会让导致博客在搜索引擎(主要是百度,Google nofollow 到垃圾网站也是没事的)中的降权,直接导致排名下降。

但是百度死不悔改,并无打算遵守这个事实标准,修复这个漏洞。当你看到自己博客的留言区一大堆链接是起重机减肥这类的广告是什么样的看法,是的这些都是我们不愿意看到,我们只想拥有一个干净的博客环境,所以我开发了一个 WordPress 插件:Comments Link Redirect,勇敢对抗 Spammer 和百度,彻底解决 WordPress 中这个问题,使得 Spammer 即使成功留言了,也不会被搜索引擎索引

Comments Link Redirect 这个插件的主要功能主要参考 Shawn 的防止SPAM的另类方法制作,这里首先感谢下 Shawn 的 idea。但是 Shawn 需要修改主题比较多的地方,还需要添加 JS 代码,比较麻烦,我修改了下做成 WordPress 插件,只需要上传激活,然后在 robots.txt 增加一行代码即可。

Comments Link Redirect 这个插件主要功能是把留言者的链接和留言中链接的 URL 转化为一个跳转链接,如:
http://www.jerryji.cn/?r=http://www.sina.com.cn

然后手工在 robots.txt 中添加一行以下代码即可:

Disallow: /?r=*

这样所有留言区的链接既不会被搜索引擎(包括百度,如果百度真如他所说它遵守 robots.txt 协议的话)索引,更不会给予权重。

下载:Comments Link Redirect

该插件并不会减少你博客的垃圾留言,但是它能够让这些垃圾留言不能被索引,到你博客上获取权重,这样能够真正保护你的博客

Popularity: 2%

18 Responses to “wordpress 防 Spam 的终极办法:Comments Link Redirect”

Jeramy Gabrielli United States Internet Explorer Windows 十二月 13th, 2010 at 16:22

I’d be inclined to agree with you one this subject. Which is not something I typically do! I love reading a post that will make people think. Also, thanks for allowing me to speak my mind!

woman libido United States Internet Explorer Windows 十二月 16th, 2010 at 06:58

Excellent post. I learn something more challenging on different blogs everyday. It is stimulating to study content from other writers and be taught a little something their own. I’d take a look at use some of content on my blog as soon as you don’t mind. Natually I’ll supply a link into your web page. Thanks sharing.

Betting Euro 2012 Offer United States Opera Mini Windows 十二月 16th, 2010 at 23:04

Hey! It’s like you understand my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you could do with some pictures to drive the content home a bit, besides that, this is wonderful blog. A outstanding read. I will definitely revisit again.

location salle United States Mozilla Firefox Windows 十二月 17th, 2010 at 01:23

I found your weblog on google and check several of the early posts. Preserve up the excellent operate. I just additional up your RSS feed to my MSN News Reader. Seeking forward to reading through additional from you later on!…

mutuelle Indonesia Mozilla Firefox Ubuntu Linux 十二月 18th, 2010 at 02:18

This web site is really a walk-through for all of the info you wanted about this and didn’t know who to ask. Glimpse here, and you’ll definitely discover it.

vlc Kuwait Mozilla Firefox Windows 十二月 18th, 2010 at 05:45

This is really a extremely beneficial read for me, Have to admit you might be 1 in the most effective bloggers I ever saw.Thanks for posting this informative article.

seotons Brazil Google Chrome Windows 十二月 18th, 2010 at 19:57

This web site is really a walk-through for all of the info you wanted about this and didn’t know who to ask. Glimpse here, and you’ll definitely discover it.

Leave a Response

You must be logged in to post a comment.