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?有您激活了插件第一?
First use it just after activation, no customization.第一次使用它只是激活後,不需要定制。