AntiSpam: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
Line 5: Line 5:
== spam of comments/trackbacks  ==
== spam of comments/trackbacks  ==
防制廣告機器人(WWW Robots, wanderers, spiders)的方法
防制廣告機器人(WWW Robots, wanderers, spiders)的方法
=== IP封鎖 ===
* [http://tools.dynamicdrive.com/userban/ .HTACCESS IP, Referrer, and Hotlink Banning Generator] via [http://jas9.blogspot.com/2007/07/htaccess.html .htaccess 生成器] for [http://httpd.apache.org/docs/1.3/howto/htaccess.html Apache web server]
* [<span title="Movable Type" style="cursor:help;Border-bottom-style:dotted;Border-bottom-width:thin;">MT</span>] 避免數秒內同一IP一直張貼迴響[http://www.movabletype.org/docs/mtmanual_configuration.html#item_ThrottleSeconds ThrottleSeconds] (基本防護功能)
* [<span title="Movable Type" style="cursor:help;Border-bottom-style:dotted;Border-bottom-width:thin;">MT</span>] 避免數秒內同一IP一直張貼迴響[http://www.movabletype.org/docs/mtmanual_configuration.html#item_ThrottleSeconds ThrottleSeconds] (基本防護功能)
* MT hacks: [http://www.nonplus.net/software/mt/AvoidingDuplicateComments.htm 防止重複迴響](Avoiding Duplicate Comments 3.01) + [http://www.nonplus.net/software/mt/RebuildEntry.htm 重建單篇](Rebuild Entry 2.0) via: [http://www.chieftain.idv.tw/archives/000103.html 酋長]
* [[DokuWiki]]: [http://www.dokuwiki.org/plugin:ipban IP Banning Plugin]
* change the filename of comment.cgi 效果不佳,詳見 [http://www.azuremedia.net/tech/history/blog/000926.html 說明] (jimmytp:補上一個假的原檔名這樣才不會被發現)
* [MT] 修改menu.tmpl 快速消除多筆迴響或通告 [http://wiki.planetoid.info/index.php/Delete_duplicate_comments_or_pings_of_movabletype 說明] 參考: netrunner: [http://www.oui-design.com/netrunner/archives/002148.html MT的垃圾留言对策]
* [MT] [http://www.elise.com/mt/archives/000246concerning_spam.php Learning Movable Type: Concerning Spam] 2004-08-16


=== 權限控制(ACL) ===
=== 權限控制(ACL) ===
Line 74: Line 75:
=== 要求使用者回答問題 ===
=== 要求使用者回答問題 ===
* 文字 or 數字問題 ex: [http://www.oddmuse.org/cgi-bin/oddmuse/QuestionAsker_Extension Oddmuse: QuestionAsker Extension]
* 文字 or 數字問題 ex: [http://www.oddmuse.org/cgi-bin/oddmuse/QuestionAsker_Extension Oddmuse: QuestionAsker Extension]


=== 索引延遲(Delayed Indexing) ===
=== 索引延遲(Delayed Indexing) ===
[http://c2.com/cgi/wiki?DelayedIndexing Delayed Indexing] for [[Wiki]]
[http://c2.com/cgi/wiki?DelayedIndexing Delayed Indexing] for [[Wiki]]
* Wiki內容變動一段時間後,才會允許搜尋引擎進行索引。 ex: [[DokuWiki]]預設[http://www.dokuwiki.org/config:indexdelay 延遲索引]5日,在這段時間如果有廣告留言,Wiki社群也能進行處理。
* Wiki內容變動一段時間後,才會允許搜尋引擎進行索引。 ex: [[DokuWiki]]預設[http://www.dokuwiki.org/config:indexdelay 延遲索引]5日,在這段時間如果有廣告留言,Wiki社群也能進行處理。
=== 分析比對spam bot的HTTP requests ===
* [[DokuWiki]]: [http://www.dokuwiki.org/plugin:badbehaviour Bad Behaviour Plugin]
* [http://www.bad-behavior.ioerror.us/ Bad Behavior] for forum, blog(ex: WordPress)...


=== 反制TrackBack Spam ===
=== 反制TrackBack Spam ===
Line 91: Line 98:
** [http://www.oui-blog.com/archives/2005/01/spamae_aeea.php Oui-Blog │防治Spam大作戰 【*極*重要公告】] 2005-01-08
** [http://www.oui-blog.com/archives/2005/01/spamae_aeea.php Oui-Blog │防治Spam大作戰 【*極*重要公告】] 2005-01-08
** [http://weblog.burningbird.net/archives/2002/10/29/comment-spam-quick-fix Burningbird » Comment Spam Quick Fix] 2002-10-29
** [http://weblog.burningbird.net/archives/2002/10/29/comment-spam-quick-fix Burningbird » Comment Spam Quick Fix] 2002-10-29
* [<span title="Movable Type" style="cursor:help;Border-bottom-style:dotted;Border-bottom-width:thin;">MT</span>] hacks: [http://www.nonplus.net/software/mt/AvoidingDuplicateComments.htm 防止重複迴響](Avoiding Duplicate Comments 3.01) + [http://www.nonplus.net/software/mt/RebuildEntry.htm 重建單篇](Rebuild Entry 2.0) via: [http://www.chieftain.idv.tw/archives/000103.html 酋長]
* change the filename of comment.cgi 效果不佳,詳見 [http://www.azuremedia.net/tech/history/blog/000926.html 說明] (jimmytp:補上一個假的原檔名這樣才不會被發現)
* [MT] 修改menu.tmpl 快速消除多筆迴響或通告 [http://wiki.planetoid.info/index.php/Delete_duplicate_comments_or_pings_of_movabletype 說明] 參考: netrunner: [http://www.oui-design.com/netrunner/archives/002148.html MT的垃圾留言对策]
* [MT] [http://www.elise.com/mt/archives/000246concerning_spam.php Learning Movable Type: Concerning Spam] 2004-08-16


* [Blosxom] [http://greg.vario.us/blog/software/blosxom/antispam.html nospam plugin] 利用Javascript在迴響裡加上亂數隱藏欄位
* [Blosxom] [http://greg.vario.us/blog/software/blosxom/antispam.html nospam plugin] 利用Javascript在迴響裡加上亂數隱藏欄位

Revision as of 15:42, 6 December 2008

反制廣告郵件/垃圾信件/廣告評論(spam comment, trackbacks)

spam of comments/trackbacks

防制廣告機器人(WWW Robots, wanderers, spiders)的方法


IP封鎖

權限控制(ACL)

張貼回應需經權限控制(ACL)的審核/延遲發佈

黑名單(blacklist)

robots.txt設置搜尋引擎bot的漫遊政策

優點:在網站根目錄新增一個robots.txt檔案,告訴搜尋引擎等使用者代理程式(user agent)不要將你的網站列在索引檔。

User-agent: *
Disallow: /path/to/mt/
  • Wiki: 避免將舊版頁面列入索引範圍 (資料來源: chongqed.org)

缺點:不是每個代理程式都會很禮貌地遵循robots.txt的原則。

迴響內容的文字過濾

要求使用者輸入圖上的檢核碼(security code)

在輸入評論處, 顯示一張圖片, 要求使用者輸入圖上的檢核碼(security code, Captcha, 驗證碼, 識別碼...),藉以判別是否為濫發廣告的機器人,但是這個方法的缺點是降低網頁的親和力(Accessibility),使得有視覺障礙的網友無法發表迴響

CMS

Blog software

more software

反思:

Comments Post Rewriter

javascript的混淆技術

要求使用者回答問題


索引延遲(Delayed Indexing)

Delayed Indexing for Wiki

  • Wiki內容變動一段時間後,才會允許搜尋引擎進行索引。 ex: DokuWiki預設延遲索引5日,在這段時間如果有廣告留言,Wiki社群也能進行處理。

分析比對spam bot的HTTP requests


反制TrackBack Spam

反制Refer Spam

請參考Exclude filter of refering sites

其他

  • [Blosxom] nospam plugin 利用Javascript在迴響裡加上亂數隱藏欄位
  • [MediaWiki] 荷蘭語wikipedia要求匿名訪客(IP guest)編輯內容,需先預覽,才能儲存內容。 (visited: 2007-12-20)

nofollow: 降低comment/trackback的PageRank


Email

Anti Spam Email: 收集Email清單的機器人, 報告濫發電郵/檢舉信箱, 郵件過濾

即時通訊

  • [Skype] [工具選單] 檔案 -> 設定選項 -> [隱私]分頁 -> 只有在我的聯絡人名單可以撥給我或傳訊息給我 via Skype用户:小心垃圾信息骚扰 by Zheng 2004-11-18
  • [Yahoo!奇摩Messenger] 即時通偏好設定 -> 拒看名單: 不在好友名單內的帳號,全部拒看。


相關主題: Spam_Text_Formatting_Rules