Have you ever gone to your Akismet plug-in in Wordpress and NOT had spam to clear out?あなたはあなたのアキスメットワードプレスのプラグインに行ったとNOTマークをオフにしていたか? Even seeing it there can be depressing and a strain on your servers resources.もあるとサーバーのリソースに負担することができます気のめいるように見える。 Why even let spam bots eat up your processor with extra SQL queries!なぜ、スパム対策にも余分なSQLクエリを使用してプロセッサを食べてみましょう! I’ve come up with a spam defense lineup where 99% of my spam stops bots before they even get logged as spam!私はスパムの防衛ラインアップでは、私のスパムの99 %がスパムとしてログオンしてもロボットを取得する前に停止するまで来るんです!

Defense Line 1: Number CAPTCHA 防衛線1 :番号CAPTCHA
Two months ago I posted a series of 5 Spam Blocking Posts . 2ヵ月前に私は5迷惑メールをブロックする一連の記事を掲載 In one of those, I introduced my Enhanced Number Equation method.これらのうちの1つで、私は強化された番号方程式法を導入した I have essentially refitted that code for Wordpress use!私は基本的にrefittedしているWordpressの使用するためのコード! I actively use this on several of my own sites.私は積極的に自分自身のサイトのいくつかでこの使用しています。 Navigate to a comments section in a content page on one of my custom coded sites: mmorpgexposed.com .は、コメント欄には、コンテンツページでは私のカスタムのサイトコード: mmorpgexposed.comに移動します。 It has worked wonders for me!不思議働いてきた私にとって!

Here’s the steps on how to implement it.ここにどのように実装する上での手順です。 Note I’m using Wordpress 2.6.私はワードプレス2.6を使用している注意してください。 If you’re using an earlier or later version it should work, but make sure you BAKCUP before you edit anything.以前を使用している場合、またはそれ以降のバージョンが動作するはずですが、編集の前に何かをBAKCUPことを確認します。 Also make a note somewhere that you’ve edited this file so you can carry over the changes in the future.また、どこかので、将来の変更を行うことができますが、このファイルを編集したメモしておきます。

  1. <?php
  2. //FILE: /wp-content/themes/YOURTHEME/comments.php - where YOURTHEME is the name of the theme you’re currently using
  3. //FIND: <textarea name="comment" id="comment" rows="10" cols="35" wrap="virtual" tabindex="4"></textarea>
  4. //AFTER any closing tags for your paragraphs or label setup, add: あなたの//AFTER any closing tags for your paragraphs or label setup, add: / //AFTER any closing tags for your paragraphs or label setup, add:
  5. function numbercapcha ( ) {
  6. $firstnum = rand ( 5 , 8 ) ;
  7. $secondnum = rand ( 1 , 4 ) ;
  8. $coinflip = rand ( 1 , 2 ) % 2 ;
  9. if ( $coinflip == 0 ) { 場合 if ( $coinflip == 0 ) {
  10. $math = $firstnum $secondnum ;
  11. $operators = array ( " " , "Added To" , "Plus" ) ; 加え $operators = array ( " " , "Added To" , "Plus" ) ;
  12. $operatorschoice = rand ( 1 , 3 ) % 3 ;
  13. } else {
  14. $math = $firstnum - $secondnum ;
  15. $operators = array ( "-" , "Minus" ) ;
  16. $operatorschoice = rand ( 1 , 2 ) % 2 ;
  17. }
  18. echo $firstnum . " " . $operators [ $operatorschoice ] . " " . $secondnum . " = <input type= \" text \" name= \" number \" maxlength= \" 2 \" size= \" 5 \" id= \" numcapcha \" style= \" width: 25px; \" >" ; $エコーecho $firstnum . " " . $operators [ $operatorschoice ] . " " . $secondnum . " = <input type= \" text \" name= \" number \" maxlength= \" 2 \" size= \" 5 \" id= \" numcapcha \" style= \" width: 25px; \" >" ; = echo $firstnum . " " . $operators [ $operatorschoice ] . " " . $secondnum . " = <input type= \" text \" name= \" number \" maxlength= \" 2 \" size= \" 5 \" id= \" numcapcha \" style= \" width: 25px; \" >" ; = echo $firstnum . " " . $operators [ $operatorschoice ] . " " . $secondnum . " = <input type= \" text \" name= \" number \" maxlength= \" 2 \" size= \" 5 \" id= \" numcapcha \" style= \" width: 25px; \" >" ;
  19. return $math ;
  20. }
  21. // Contiue with your theme and use this snippit of PHP to generate the input field:
  22. // <? $_SESSION['capcha'] = numbercapcha(); ?>
  23. // Example usage shown below:
  24. ?>
  25. < p >< label for = "security" > Security </ label >< ? $_SESSION [ ‘capcha’ ] = numbercapcha ( ) ; ? ></ p > = < p >< label for = "security" > Security </ label >< ? $_SESSION [ ‘capcha’ ] = numbercapcha ( ) ; ? ></ p > > < p >< label for = "security" > Security </ label >< ? $_SESSION [ ‘capcha’ ] = numbercapcha ( ) ; ? ></ p >
  26. <?php
  27. //FILE: /wp-comments-post.php (in the root directory) //FILE: /wp-comments-post.php (in the root directory)でpost.php //FILE: /wp-comments-post.php (in the root directory)
  28. //FIND: $comment_type = ”;
  29. //This should be on like 63 in Wordpress 2.6
  30. //AFTER ADD: 追加 //AFTER ADD:
  31. if ( is_numeric ( $numcheck ) && $sessioncapcha == $numcheck ) {
  32. //This should be left blank unless you want to do something else if the number was answered correctly を除き、 //This should be left blank unless you want to do something else if the number was answered correctly / //This should be left blank unless you want to do something else if the number was answered correctly
  33. } else {
  34. //Number wasnt answered correctly - Show Error
  35. wp_die ( __ ( ‘Error: You did not answer the security question correctly.’ ) ) ; ' wp_die ( __ ( ‘Error: You did not answer the security question correctly.’ ) ) ;
  36. }
  37. ?>

The above code may differ slightly with the HTML only.上記のコードは、 HTMLだけで若干異なる場合があります。 You may want to tidy it up to suit your theme.あなたがそれをあなたのテーマに合うように相当することができます。 I also use CSS to modify the display which I have not provided here.私もここでは、 CSSを提供していないディスプレイを変更して使用しています。 That goes a bit beyond the goal for today.今日のための目標を少し超えている。

Here’sa very quick howto for some CSS styling to get you started, though it doesn’t have to be all that incredibly fancy right away:ただし、すべてをすぐに信じられないほど高級である必要はないのCSSスタイルを以下にいくつかの非常に速いの手引きを開始するには:

Also, I have intentionally placed the error code before any other error is checked.また、意図的にも、他のエラーコードを挿入する前にエラーがチェックされます。 Checking that the CAPTCHA is correct first saves the effort of processing anything else until it is determined that the CAPTCHA has been entered correctly.のcaptcha正しいことを確認する処理を最初に何の努力をするまでのcaptchaが正しく入力されているが決定され保存されます。

Defense Line 2: Akismet Or Defensio 守備ライン2 :アキスメットまたはDefensio
Akismet is your second line of defense for comments.アキスメットコメントの防衛の2行目です。 It used to be your first, and you’d have to sort through all that garbage!それはあなたの最初にするために使用すると、すべてのごみをソートする必要があるだろう! You should see a big time savings here but it should still exist.ここには大きな時間の節約が表示されますが、まだ存在する必要があります。 I also posted How Akismet And Defensio Create Another Line Of Spam Defense a while back .また、どのようにアキスメットそしてしばらくDefensioバックスパム対策のもう一つのラインを作成します If you’re not already using one, try them out.していない場合は、それらを試して1つを使用しています。 Long story short, Akismet caught more spam than Defensio did… but times change, try them both.手短に、アキスメットでしたDefensio以上のスパムが...巻き込ま回変更すると、その両方を試してください。

Dowload Akismet Wordpress Plug-in Or Download Defensio Anti-Spam Wordpress Plug-in DowloadアキスメットWordpressのプラグインダウンロードDefensio対策や迷惑メールWordpressのプラグイン

Defense Line 3: Simple Trackback Validation 守備ライン3 :シンプルなトラックバック検証
Blocking Trackback and Pingback spam has never been so easy.トラックバックとピングバックスパムをブロックされて簡単にしたことはない。 Wordpress users are very susceptible to being abused to this kind of spam which is becoming much more popular for a spammers choice of attack. Wordpressのユーザーは非常にこの種のスパムをはるかに攻撃の選択肢の人気を集めているスパマー虐待される影響を受けやすいです。

This plug-in checks two things which can both be toggled on/off for customization:このプラグインのチェックの両方をトグルすることができます2つのこと/オフのカスタマイズのために:

  1. Checks the IP address of the webserver sending the request and checks it against the trackback URL that’s being provided.チェックしてから、ウェブサーバーは、リクエストとチェックをトラックバックURLに対しては、提供されている送信のIPアドレスを入力します。
  2. Checks that your URL is actually on the page that the referring URL is sending from.小切手は、お客様のURLを実際にページが参照されているURLから送信されています。

What I love about it most, is it also marks a trackback by temporarily renaming it to “BLOCKED BY STBV” as highlighted in the example below.私はほとんどの詳細については、どのような愛にも一時的"にSTBV通行止め"として以下の例でハイライトをリネームしてトラックバックをマークしている。 If you mark it as accepted, it will remove the titling and make it active.マークとして受け入れ場合は、そのタイトルを削除して、それを有効にする。

Download Simple Trackback Validation Plug-in . 検証プラグインをダウンロードしてシンプルなトラックバック You can also go to the STBV plug-in homepage and read up about it a lot more.また、 STBVプラグインに行くことができますについては、もっと多くのホームページとをお読みください。

Other Options 他の選択肢
That concludes the setup that I have which is safeguarding me so well that I actually had to wait a week so that I could grab that trackback picture I used above for this post.は、セットアップは、私は非常によく、私が実際には1週間以上のように私はこの記事に使用される画像は、トラックバックを取る可能性がある待っていた私に保護されていると結論づけている。 However, I find it necessary to share with you additional options that I combed through in the process of setting up the redesign of this blog .しかし、あなたに追加のオプションは、私はこのブログのデザイン変更を設定するまでの過程でcombedが必要に共有して下さい You might also have a earlier or later version of Wordpress in which some of these methods may not work.また、ワードプレスのは、いくつかのこれらのメソッドの動作しないことがありますが、以前またはそれ以降のバージョンがあります。 Therefore you’ll have a few more options:そのためにさらにいくつかのオプションがあります:

WP-Hardened-Trackback is a lot like STBV. WPを採用硬化のトラックバック STBVのようにたくさんある。 When I tried it, it didn’t work with 2.6.私はそれを試みたときには、 2.6で動作していない。 If for whatever reason STBV doesn’t work for you because you havent upgraded yet, try this out.あなたはまだありませんので、これを試してアップグレードhaventあなたにとってどのような理由STBV場合は機能しません。

Math-Comment-Spam-Protection is the exact same idea as what I presented to you in Defense Line 1. 数学、コメントスパムの保護私はあなたに防衛ライン1で提示と完全に同じ考えです。 However the plug-in only works for Wordpress 1.5.2, 2.0.x and 2.1.しかし、プラグインは、ワードプレス1.5.2は、 2.0.xのと2.1でのみ動作します。 I tried it out and had a lot of problems with it which is why I modified my previous solution for another site to fit into Wordpress.私はそれを試してみた、それとは別のサイトのWordpressのになぜ私の以前のソリューションに合わせて変更される問題の多くをしていた。 Again, if you’re on an old version, maybe my hack wont work for you.繰り返しますが、古いバージョンの場合には、おそらくあなたのために慣れた私の仕事ハック。 So try this!ので、このお試し下さい!

WP-SpamFree is a plug-in that claims to do it all. WPを採用- SpamFreeのプラグインですが、すべてを行うには主張している。 It weeds out bots by assuming they cant use JavaScript and Cookies.隠語を使用するにはJavaScriptとCookieを前提にしたロボットを雑草。 While this will reduce a lot of spam, I feel there is a small enough user base not using JavaScript or cookies, that this might cause a problem for users that want to comment on your form.このマークは多くの削減が、私はそこには小さな十分なユーザーベースJavaScriptやクッキーを使用していない場合は、そのフォームにはコメントする必要があるユーザーのための問題を引き起こす可能性があります感じている。 The point in using this would be so that a user doesn’t have to enter an extra CAPTCHA field.これには、ユーザーに余分なCAPTCHA欄に入力する必要がないと使用上のポイント。 But at the end of the day, if a user cannot add or subtract single digit numbers, I don’t know if their comment would be of much use to anyone anyways.しかし、その日の最後に、ユーザーを追加できない場合、または1つの桁の数字を引くと、私にはわからない場合は、どうせ誰でもコメントを多く使用することです。 Another reason you might use this is it would be somewhat less technical then copying/pasting the code I have for the CAPTCHA above.この技術はやや少ないだろうし、コピー/私のcaptchaを持っている上記のコードを貼り付けて使用することがもう一つの理由です。 There is also ton of documentation on their WP-SpamFree’s website .また、文書のトンがWPを採用ている- SpamFreeのウェブサイト

Conclusions 結論
I recent read a post on Shoemoney.Com about his 60,000 comments mark .私は彼のコメントをマーク約60000 Shoemoney.Comの記事を読む最近 He commented it with this:彼はこれにはコメント:

“Its hard to imagine 60k comments.   Especially when about 80% of them are manually approved with all the spam filters we have.” "その60kのコメントを想像するのは難しい。特にそれらの約80 %が我々を持つすべての迷惑メールフィルタの設定を手動で承認されています。 "

Maybe Shoemoney should implement some of these things to save some time.たぶんShoemoneyいくつかの時間を節約するために、これらのものを実装する必要があります。 :ツイスト: If you’re in the same spot, then dont let spam waste your time!同じ場所にいる場合は、お客様の時間を無駄にしてドントマークしてみましょう!

This post is part of a series of posts in which I’m telling you how to modify your Wordpress theme the way I have!この記事は、私はあなたのWordpressのテーマにしている方法を変更する話だけど、一連の記事の一部です! If you’d like to see anything in particular, comment on the RobMalon.Com Redesign post and I’ll make it part of the series!場合は、再設計RobMalon.Com記事にコメントを特に何を見たいのですが、私はそのシリーズの一環になるよ!


1 Trackback(s) 1トラックバック(秒)

  1. Aug 28, 2008: Web Discoveries : 5 Blogs About Food or Money | Axonoid 2008年8月28日: ウェブ上の発見:食品やマネー約5ブログ | Axonoid


2 Comment(s) On 2コメント(秒)

"HowTo Eliminate Wordpress Trackback Comment And Pingback Spam" "手引き " Wordpressのコメントやトラックバックスパムの排除ピングバック
  1. MyAvatars 0.2 Lynn - Sep 13, 2008 リン -0 9月1 3、 2 008

    Maybe I shouldn’t, but these days I just rely on my spam filter (Akismet) to catch it all.たぶん私はすべきではないんだけど、私のスパムフィルタ(アキスメット)の上にすべてをキャッチしてくれるの日。 I used to use Simple Trackback Validation on a several of the blogs I have, but it stopped stuff from going directly to the spam filter and actually caused me more work when I had to delete the trackbacks.私はシンプルなトラックバックを使用するように使用される検証しているブログの数が、直接、スパムフィルタをメインとなる実際の詳細は、トラックバックを削除するときに発生していた仕事からのものを停止した。

    I’ve finally set Akismet to delete anything older than 30 days automatically, and I almost never check the spam section of my blogs anymore.私はようやくアキスメットより前の30日後に自動的に削除するには何か、私はもう私のブログのスパムのセクションをチェックしない設定してあります。

    I’m sure I’m running a risk of missing a good comment, but the time savings has been worth it.私は優秀なコメントを紛失の危険性を実行していることは確信しているのは相当の時間が節約されています。 Not to mention, I’ve quit burning my eyes with some of the filth that I used to have to skim through before deleting the spam comments and trackbacks manually.はさておき、私はいくつかは、私は手動でスパムのコメントやトラックバックを削除する前に流し読みするために使用した不潔で私の目の書き込みを終了している。

  2. MyAvatars 0.2 Rob - Sep 14, 2008 ロブ -0 9月1 4、 2 008

    In that case, it still would be good to have both, but just reverse the order in which the code executes.その場合は、まだ両方があるが、いいんじゃないかだけでは、コードの実行順序を逆にします。 So far, I haven’t run into the problem you’ve mentioned, but I might write a howto/plugin and post on how to do what you’re asking for sometime :).これまでのところ、私はあなたの問題に言及して実行されていませんが、私は手引きを書くかもしれない/プラグインとどのようにいつかあなたのために何を求めているかを投稿: ) 。



Leave A Comment:コメントを残す:

Comments RSS Feed コメントのRSSフィード

6 4 = 6 4 =