WordPress 2.0 / 1.5.x Plugin: Referrer Bouncer - A Plugin to bounce referrer spammer bots (and humans)在WordPress 2.0 / 1.5.x插件:引荐bouncer -插件反弹引荐垃圾邮件发送者漫游器(和人类)
Overview 概览
A Plugin to bounce back referrer spam attempts; requires no upfront configuration, no mod-rewrite. 1插件反弹引荐垃圾邮件的企图;无需预先配置,没有按付款当日价格计算-重写。 It is like the strong silent bouncer at your favorite club.这是一样强烈的沉默bouncer在您最喜爱的俱乐部。 Tested on WordPress 1.5.x and 2.0.进行测试的WordPress 1.5 。 x和2.0 。 It should work with earlier versions too.它的工作应与旧版太。
It does one job and does it well.但这一份工作是否良好。 Enough said.足够的说。
Update : 更新 :
- A字母a new version of the plugin新版本的插件 is available with some enhancements.可与一些改进。 Please read the details请阅读详情 here这里 . 。 The download link below provides the latest version.下载下面的链接提供了最新的版本。
- This plugin does not collect any information on the amount of work it does or spammer bots it bounces back.此插件不会收集任何资料,大量的工作是否或垃圾邮件发送者的bot它反弹。 This is because I want it to be as fast as possible.这是因为我想它要尽可能快。 So some people may want to know how to verify if the plugin actually works.所以有些人可能想知道如何验证,如果插件,其实工程。 To answer that I have written an article on回答这个问题,我已经写了一篇文章 how to ensure your site is protected by referrer bouncer plugin如何确保您的网站是受保护的由引荐bouncer插件 . 。
- Anyone who have downloaded the plugin before May 4th, 2005 are strongly requested to re-download the plugin again.任何人谁已经下载了该插件之前, 2005年5月4日强烈要求重新下载插件。 A fix was made for non-default behavior of the plugin following a bug report by修复了非默认行为插件以下的错误报告 Gustavo古斯塔沃。 . 。 Thanks Gustavo!古斯塔沃感谢!
- If your WP installation hangs intermittently after installing the plugin then chmod your wp-content directory to 777.如果您的可湿性粉剂安装挂起间歇后,安装插件,然后chmod您的可湿性粉剂-内容目录,以777 。 If you are logged in and in WP home directory then the exact command on linux/unix systems would be:如果您登录,并在可湿性粉剂的主目录,然后确切的命令在Linux / Unix系统将是:
chmod 777 wp-content chmod 777可湿性粉剂内容
Thanks to感谢 Richard Silverstein理查德西尔弗斯坦 for this fix.为此修复程序。
Background 背景
I was trying to block referrer spammer’s from my blog sites.我是试图阻止垃圾邮件发送者引荐的从我的博客网站。 I saw few scripts, never a real WordPress Plugin which does the job without requiring you to configure anything or without requiring manual modification of core files.我看到几个剧本,从来没有一个真正的wordpress插件,其中是否就业,而不需要您可以设定任何东西或无需手动修改的核心档案。 Also I want to manage the list of referrer domains without having to modify the source code.此外,我想管理的名单引荐域不必修改源代码。
I am uncomfortable with Plugins, which requires modification of core WordPress code, because it forces you through painful upgrade procedures.我感到不舒服的插件,这需要修改核心的WordPress代码,因为它迫使您通过痛苦的升级程序。
So I created所以我创造 Referrer Bouncer Plugin for WordPress 1.5引荐bouncer插件的WordPress 1.5 with the following simple requirements:符合以下简单的要求:
- It should be simple to use.它应该是简单使用。
- It should be simple to install.应该安装简单。
- It should come pre-configured.应该预先设定的。
- It should allow changing referrer information.它应允许改变引荐信息。
- It should embed security measures against outsider modifications它应该嵌入安全措施,防止外人修改
- It should require no manual intervention for day-to-day operations.应该不需要人工干预,为日常运作。
Referrer Bouncer Plugin for WordPress 1.5引荐bouncer插件的WordPress 1.5 is of the class of upload-activate-and-forget Plugins (like是阶级的上传激活和忘记插件(如 WordPress 1.5 Plugin to disable nofollow from comments在WordPress 1.5插件禁用nofollow从评论 ), Plugins that simply work. ) ,插件,简单的工作。
Note: If you find this plugin useful, please consider contributing to ensure development of more such plugins and maintenance.注意:如果您觉得这是有用的插件,请考虑贡献,以确保发展更多这类插件和维修。
Filed under提起下 CMS Software CMS软件 , , How To如何 , , PHP PHP的 , , Pro Blogging赞成Blogging , , Spam Watch垃圾邮件观赏 , , Technology技术 , , Web网页 , , WordPress在WordPress | |
| |
RSS 2.0 2.0 | |
Email this Article电子邮件此文章
You may also like to read您也可以想读 |



March 20th, 2005 at 4:05 am 2005年3月20日在上午04时05分
Hmmm… It would be wonderful if we could work out a central update service. hmmm … …这将是美好的,如果我们能够找出一个中央更新服务。 I found myself adding 2-3 new referals to my .htaccess every week.我发现自己加入2-3新referals我。 htaccess的每星期。
Either way, I’ve added a lot of the ones I received to the list.无论采用哪种方式,我已经补充了很多那些我收到到清单中。 Anyone can grab it at任何人都可以抓住它在 http://www.pirate-king.com/wp-content/referer.txt
March 20th, 2005 at 6:44 am 2005年3月20日在上午06时44分
Thanks for sharing your list.感谢分享您的清单。
March 20th, 2005 at 12:46 pm 2005年3月20日在下午12时46分
[...] Danger, And More WP Goodness Before we continue, as usual here’s another new plugin for WordPress that’s too good to pass up. [ … … ]的危险,更可湿性粉剂善之前,我们将继续一如往常,这里的另一个新的插件的WordPress认为的不太好通过。 What [...]什么[ … … ]
March 21st, 2005 at 10:32 am 2005年3月21日在上午10时32分
[...] n for Wordpress to deal with referrer spam Filed under: Plugin Testing — Tom Referrer Bouncer by Simple Thoughts seems to be a well done and [...] [ … … ] N的WordPress所处理引荐垃圾标签:插件测试-汤姆引荐b ouncer由简单的想法似乎是一个做得好和[ … … ]
March 24th, 2005 at 1:50 am 2005年3月24日在上午01时50分
[...] i tiene le statistiche ed averlo subissato di spam, sappiate che ora esiste una soluzione: referrer bouncer, un plugin per wordpress che usa una blacklist [...] [ … … ] i tiene乐statistiche教育署averlo subissato邸垃圾邮件, sappiate鸿库存esiste联合国协会soluzione :引荐bouncer ,联合国插件%的WordPress鸿美国联合国协会的黑名单[ … … ]
March 24th, 2005 at 3:26 am 2005年3月24日在上午03时26分
[...] ing but filling my stats with crap. [ … … ]荷兰,但填补我的统计与crap 。 Now I have a chance to defend myself.现在我有机会捍卫自己。 I just found a referrer bouncer plug-for WordPress and I’m hoping it wor [...]我刚刚找到一引荐bouncer插件为在WordPress和我希望它工作者[ … … ]
March 25th, 2005 at 4:26 am 2005年3月25日在上午04时26分
Thanks a bunch for writing this plugin.感谢一群为写这本插件。 I’ve been looking for one of these.我一直在寻找其中之一。
March 25th, 2005 at 4:44 am 2005年3月25日在上午04时44分
Thanks to all for the compliments.感谢所有为恭维。 I am happy to know you found it useful.我很高兴知道你发现它是有用的。
I am thinking about including Chad’s idea of a central distribution of updates in the next release.我的思考,包括乍得的想法,一个中央分配的更新,在未来释放。 Say an automatic weekly update, which incorporates your changes along with new entries from my list.说一个自动每星期更新一次,其中包括您的变化,随着新的作品,从我的名单上。
What do you all think?你怎么都觉得呢?
BTW: You can always look in my的BTW :您可以随时看看我在 list名单 . 。
March 29th, 2005 at 3:35 pm 2005年3月29日在下午3时35分
[...] trackback spam as well… and huge piles of referrer spam, which I’m hoping the Referrer Bouncer 1.1 plugin by Angsuman Chakraborty will reduce [...] [ … … ] Trackback跟踪的垃圾邮件,以及… …以及庞大的桩的引荐垃圾邮件,我希望推介bouncer 1.1插件由日由Angsuman Chakraborty将减少[ … … ]
March 30th, 2005 at 4:11 am 2005年3月30日在上午04时11分
Thanks very much for the Referrer Bouncer Plugin.非常感谢为引荐bouncer插件。 I was looking for something like that as I’ve accumulated a large number of bogus referring sites.我一直在寻找类似的东西,因为我已经积累了大量的虚假推介网站。 Since I’m on a shared hosting platform, doing the htaccess rewrite rules thing is problematic and time-consuming.自从我在一个共用平台主办,做htaccess的重写规则的事是有问题的时间和消费。
March 30th, 2005 at 7:56 am 2005年3月30日在上午07时56分
Angusman, thanks for creating this plugin. angusman ,感谢创造此插件。 I’m looking forward to benefitting from it.我期待着受惠。 I have a question about disabling the links though.我有一个问题,有关禁用的联系,虽然。 I manually created the referer.txt file, chmod it to 666.我手动创建referer.txt档案, chmod ,它以666 。 However, after clicking on the disable link it give me a few warning messages like “Warning: touch(): Unable to create file /hsphere/local/home/galen5/familywebwatch.com/blog_test/wp-content/plugins/../nrsetup.txt because Permission denied in /hsphere/local/home/galen5/familywebwatch.com/blog_test/wp-content/plugins/noreferer.php on line 48″.不过,点击后禁用它连结给我一个数的警告讯息一样, “警告:触摸( ) :无法创建文件/ hsphere/local/home/galen5/familywebwatch.com/blog_test/wp-content/plugins / .. / nrsetup.txt许可被拒绝,因为在/ hsphere/local/home/galen5/familywebwatch.com/blog_test/wp-content/plugins/noreferer.php上线48 “ 。
What am I doing wrong?是什么,我做的不对呢? Thanks for any help you can offer.感谢任何帮助,您可以提供。
March 30th, 2005 at 7:58 am 2005年3月30日在上午07时58分
Oh, I’m sorry…one more thing.哦,我很抱歉…一更多的事。 Am I correct in my understanding that after I delete the referer.txt file (for security reasons, I guess) that that information is somehow saved elsewhere for the plugin to continue working?我是正确的我的理解是,当我删除referer.txt文件(出于安全原因,我猜想) ,这种信息在某种程度上是保存在其他地方为插件继续工作?
March 30th, 2005 at 5:31 pm 2005年3月30日在下午5时31分
Hello again, Angsuman.您好,再次的, Angsumanangsuman 。 My earlier post is missing.我刚才后失踪。 Did you get it?你怎么做呢? If not, I’d be happy to explain again the help I need with your plugin.如果没有,我很乐意再解释的帮助下,我需要与您的插件。 I look forward to hearing from you.我期待着您的回音。
March 31st, 2005 at 5:19 pm 2005年3月31日在下午5时19分
@Ken @肯
Does your wp-content directory have write permission?请问你可湿性粉剂-内容目录有写权限?
The process of disabling is done by creating a file (using touch) named nrsetup.txt in your wp-content directory.过程中禁用,是做通过创建一个文件(使用触摸)命名nrsetup.txt在您的可湿性粉剂-内容目录。 You can also manually create the file for same effect.您也可以手动创建该文件为相同的效果。
Yes, when it cannot find referer.txt then it uses the default list of spammers which is hardcoded in the plugin file.是的,当它无法找到referer.txt那么将使用默认的垃圾邮件发送者名单,这是硬编码在插件文件。
Yes, I got your posts.是的,我得到您的职位。 I was out on business.我是列于业务。
Let me know if that addresses all your questions.让我知道,如果地址,您的所有问题。
March 31st, 2005 at 6:03 pm 2005年3月31日在下午6时03分
@Ken You do not need to delete the referer.txt file for security. @肯您不必删除referer.txt档案的安全。
Deleting it doesn’t enhance security in any way.删去这并不加强安全以任何方式。 In fact I encourage that you maintain your own file and update it as necessary.事实上,我鼓励你保持自己的档案和更新它作为必要的。
All I do is prevent the file from being deleted/created by outsiders using the disabling feature.我要做的是防止文件被删除/所造成的外人使用禁用功能。 Thus outsiders cannot modify your referer list even if they guess that you are using this plugin.因此,外人无法修改您的referer名单,即使他们猜测,您正在使用此插件。 Editing the file is controlled by wordpress admin authentication mechanism.编辑文件是控制在WordPress管理认证机制。 So after disabling you need not have any concerns wrt.因此,停用后,你无须有任何疑虑, wrt 。 security.安全。
March 31st, 2005 at 6:47 pm 2005年3月31日在下午6时47分
Thanks for getting back to me.感谢找回给我。
It wasn’t until I sent you another comment that I realized that the previous comments were in moderation.它不是,直到我向您发送了另一个评论,我认识到,先前的评论被在放缓。 When I submitted the third one that’s when the others popped up to tell me that.当我提交的第三一个的时候,其他人出现了告诉我。 Sorry about that.对此深感抱歉。
My wp-content directory is set to 755.我可湿性粉剂-内容目录设置为755 。 “Group” and “public” are not set to “write”. “本集团”和“公共”是不是设定为“写” 。 Should they be?应他们?
I’m sorry — I don’t understand what you mean when you say “using touch”.我很抱歉-我不明白你的意思,当你说“用触摸” 。 There is no file called “nrsetup.txt” in my wp-content directory.有没有文件的所谓“ nrsetup.txt : ”在我可湿性粉剂-内容目录。 Are you saying that I can or should create one?你是说我可以或应该建立一个? If so, I’m not clear what the file should contain.如果是的话,我并不清楚什么文件应该包含。 Could you clarify?你能澄清?
I understand about not needing to delete the referer.txt file.据我所知,大约不需要删除referer.txt档案。 So if I have the wp-content directory set to the correct chmod, will it then disable it as you describe?所以,如果我有可湿性粉剂-内容目录设置为正确的chmod ,然后将它禁用它作为您所描述的呢?
I really appreciate your help!我很欣赏你的帮助!
April 1st, 2005 at 3:22 am 2005年4月1日在上午03时22分
The wp-content directory should be writable by the process running php, which normally has the same permissions as your webserver (like Apache).该可湿性粉剂-内容目录应写的过程中运行PHP ,通常有相同的权限您的网页伺服器(如Apache的) 。 Is your web server running under your login id?是您的Web服务器下运行您的登录ID吗?
I strongly suspect that it doesn’t have write permission to wp-content directory.我强烈怀疑,它没有写权限可湿性粉剂-内容目录。 It is probably running as “nobody”.它可能是运行作为“没有人” 。 You can do a ps -ef to find out this.你可以做的PS -英法找出这一点。 Look for a process called httpd if you are running on Apache.寻找的过程,所谓的httpd如果您正在运行的Apache上。
Another way is to temporarily chmod wp-content to 777 and see if it solves your problem.另一种方式是暂时chmod可湿性粉剂内容,以777 ,看看是否可以解决您的问题。
The simplest solution for you is to create an empty file called nrsetup.txt under wp-content directory manually.最简单的解决方法,为你的是,创建一个空文件所谓nrsetup.txt下可湿性粉剂-内容目录手动。 You are done.你这样做。 You don’t need to worry about anything else.您不必担心一切。 The setup is now fully secure.安装,现已全面的安全性。
If you are not concerned about manually configuring it with referrer’s then you can also delete the referer.txt file.如果您是不关心手动配置它与引荐的,然后您也可以删除referer.txt档案。 You can always change your mind later.您可以随时改变主意,稍后。
By “touch” I meant the unix command I used to create the file.由“地缘”我的意思是Unix命令我用建立档案。
April 1st, 2005 at 5:39 am 2005年4月1日在上午05时39分
Okay, I think I’m almost there.好吧,我觉得我几乎有。 I did chmod wp-content to 777 (temporarily) and tried selecting the link to disable the referer.txt and it seemed to work (no errors were given).我本来chmod可湿性粉剂内容,以777 (暂时的) ,并试图选择链接到禁用referer.txt和它似乎工作(没有任何错误给出了) 。 I also found nrsetup.txt had been created automatically in wp-content.我也发现nrsetup.txt已自动创建在可湿性粉剂内容。
I chmod the directory back to its original settings and clicked the link and did not get an error message. i chmod目录回到其原来的设置和点击链接,并没有得到一个错误信息。 So, based on what you’re saying, now that nrsetup.txt is present, it looks like I’m done, right?因此,基于对您的话说,现在是nrsetup.txt目前,它看起来像我这样做,对不对?
Sorry for so many questions.对不起,这么多问题。 I guess what’s confusing me is when the plugin says to disable links to referer.txt and you explaining that the referer.txt can be deleted, I’m just left wondering, “so how does it know to keep working?” Of course, I’m NOT saying you’d program it that way (that would be counter-productive LOL).我猜是什么的混乱,我是当插件说要禁用的链接referer.txt和你解释说, referer.txt删除就可以了,我刚离开好奇, “因此,如何知道是否继续工作? ”当然,我不是说您要计划这种方式(即只会产生反效果lol ) 。 I’m just trying to get a good understanding of it, is all.我只是想获得一个良好的对资讯科技的认识,是所有。
I really do appreciate your patience with me and the help you’ve given.我真的非常感谢您的耐心与我的帮助您。
April 2nd, 2005 at 9:34 pm 2005年4月2日在下午9点34分
Yes, I think you are done.是的,我认为你的工作要做。
The diasbling of links means anyone with access to the url’s to create and delete your referer.txt will not be able to.该diasbling的联系手段,任何人进入该网址的创建和删除您referer.txt将不能够。 After you “disable” the links, such operations will be prohibited, till you re-enable again.之后, “禁用”的联系,这种行动将被禁止,直到你重新启用。
It doesn’t affect the working of the plugin in any way.它不影响工作的插件以任何方式。
The way it works is this.其工作方式是这样的。 It checks to see if referer.txt is present.它会检查,看看是否referer.txt是目前。 If so, it then uses it and sees if the current referrer matches anyone in your list.如果是这样,然后使用它,并认为如果目前的引荐符合任何人在您的清单。 If the referer.txt file is not present then it uses its own internal list.如果referer.txt文件不存在,然后它利用其自身的内部名单。
When I say that referer.txt can be deleted, I mean that by doing so you would be using the default set of referrer’s.当我说referer.txt删除就可以了,我的意思是,如果这样做,你会使用默认的一套引荐的。 If you want to customize the list then you need to have the referer.txt file present with your own entries.如果您想要自订清单,然后你需要有referer.txt文件,目前与自己的作品。
Hope that clarifies…希望澄清…
April 6th, 2005 at 7:34 pm 2005年4月6日在下午7点34分
Hi!嗨!
When I try to run当我试图运行
noreferer.php?noreferer_allset=true noreferer.php ? noreferer_allset =真正的
I get a 500 Internal Server error.我收到了500内部服务器错误。
What’s wrong?有什么不对呢? (Possibly the file permissions?) (可能是文件权限? )
Regards,关心,
Christian基督教
April 7th, 2005 at 12:40 am 2005年4月7日在上午12时40分
@Christian @基督教
I am assuming you are using the link specified in the plugin description.我假设您使用的连接指定的插件描述。 Is that correct?是正确的呢?
Try changing wp-content permission to 777.尝试改变可湿性粉剂内容的权限777 。 Run it.运行它。 Then change wp-content permission to your old value.然后改变可湿性粉剂内容的权限您的旧价值。
Let me know how it goes.让我知道如何这是不言而喻的。
April 7th, 2005 at 9:27 pm 2005年4月7日在下午9点27分
[...] are a lot of useronline scripts out there but this one’s made specifically for WP. [ … … ]是一个很多useronline脚本有,但这个一的作出专门为可湿性粉剂。 Referrer Bouncer : Bounce referer spammers back to their own s [...]引荐bouncer :跳出referer垃圾邮件发送者回到他们的自身[ … … ]
May 4th, 2005 at 2:51 am 2005年5月4日在上午02时51分
Hello,喂,
I’d install this plugin and it’s activated, also I add referers url into referers.txt.我要安装此插件和它的启动,还我想补充referers网址referers.txt 。 But I still但我仍
seeing the same spam referers in my stats!看到同一个垃圾邮件referers在我的统计!
For example, in referers.txt I’ve “p(0)ker” but in my referers I see “http://www.p(0)ker.blabla.com.举例来说,在referers.txt我已经展示“ P ( 0 )克” ,但在我referers我看到“ http://www.p ( 0 ) ker.blabla.com 。 (note: (0)=o). (注: ( 0 ) = o )段。
What’s wrong?有什么不对呢?
Thanks!!!感谢!
May 4th, 2005 at 4:49 am 2005年5月4日在上午04时49分
Gustavo古斯塔沃。
Thanks for the bug report.感谢错误报告。 I confirmed the bug which happens for non-default use of the plugin. i证实,该缺陷发生的非默认使用的插件。 I have updated the plugin file.我有最新的插件文件。 Please download again.请再次下载。
Thanks.谢谢。
All,全部,
If you have downloaded the plugin before, please download it again as a critical error for non-default use of the plugin (customized referrer file) has been discovered and fixed.如果您已经下载了该插件前,请下载它再次作为一个重要的误差非默认使用的插件(定制引荐档案)已被发现并固定。
May 6th, 2005 at 9:44 pm 2005年5月6日在下午9点44分
[...] spambots. [ … … ]服务器今天为Plone 。 It goes far beyond User-Agent and Referer, however.它远远超出了用户代理和referer ,但。 3. 3 。 Recent Comments plugin 4.最近的评论插件4 。 WordPress 1.5 Plugin: Referrer Bouncer - A Plugin to bounce ref [...]在WordPress 1.5插件:引荐bouncer -插件反弹号[ … … ]
May 10th, 2005 at 5:56 am 2005年5月10日在上午05时56分
[...] To keep around, in case my other, latest installments don’t get the job 100% done : WordPress 1.5 Plugin: Referrer Bouncer : “A Plugin to b [...] [ … … ]保持周围,在其他情况下我的,最新的分期付款不得到就业100 %做:在WordPress 1.5插件:引荐bouncer : “插件到B [ … … ]
May 15th, 2005 at 1:03 pm 2005年5月15日在下午1时03分
hey man,嘿男子,
not sure what I am doing wrong but i just installed a new wp 1.5 blog不知道是什么,我这样做是错误的,但我刚刚安装了一个新的可湿性粉剂1.5博客
and when I add the noreferrer plugin to my plugin folder, and then on my site i try to click the当我添加noreferrer插件我的插件文件夹,然后在我的网站上我尝试点击
‘edit’ link so that i go into my Wordpress user interface, it hangs and does not let me get in there.. [编辑]连结,让我进入我的WordPress的用户界面,它挂起并没有让我得到的有..
but when i remove the noreferrer plugin from my plugin folder through ftp, then i can access my blog and admin fine..但是当我删除noreferrer插件从我的插件文件夹通过FTP的话,我可以访问我的博客和政府当局的罚款..
the noreferrer plugin is hanging something up, not sure why.该noreferrer插件是悬的东西,不知道为什么。
i am assuming to install I only have to drop the file into my plugins directory?我假设安装,我只是有下降的文件到我的插件目录中? and thats it?和这就是它呢?
tom汤姆
May 15th, 2005 at 3:24 pm 2005年5月15日在下午3时24分
@Thomas @托马斯
Have you activated the plugin first?有您激活了插件第一?