CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is arguably one of the best ways to knock out the majority of spam you receive. CAPTCHA (完全に自動化公開チューリングテスト以外に)間違いなく1つのスパムを受け取るの大半をノックするための最良の方法ですコンピュータと人間は言う。 Its become popular with web 2.0 applications.同社のWeb 2.0アプリケーションで人気を呼んでいる。 So much that its become widely used and thus spammers found a needed to crack it.あまりにも多くのスパマーは、広く使われるようになるためには必要不可欠な亀裂を発見した。 If you can create a new and unique CAPTCHA however, you’ll be a lot safer then everyone else who tend to use the same script site after site.しかし場合は、ユニークで新しいCAPTCHAを作成できるのなら、多くの安全なサイトを後にし、他の皆は、同じスクリプトをサイトを利用する傾向があるだろう。

About a year ago I tried a simple addition script.約1年前、私は、単純なスクリプトを追加した。 If you didn’t enter the right result of the simple query it would error.もしそれがエラーは、単純なクエリの正しい結果が入力されませんでした。 This actually works pretty well for me and most others right now.これは実際にはかなりよく、私にとって今、最も他人に動作します。 Especially since they have evolved into changing the numbers used in the addition after each refresh.特に彼らの数に加えて、各リフレッシュ後に使用されるの変化に進化している。 When I use something like this I get even less spam slipping through.私はこの私よりも少ないときにマークを滑りになるようなものを使用します。 So I took the addition script a step further.だから一歩をさらにスクリプトを追加した。 Why?なぜ? Because a single number can easily be copied over by a script and because not all servers I’ve worked with have ImageMagik and/or GD Library installed.これは、 1つの番号を簡単にスクリプトをコピーすることができますので、一緒に働いてきたImageMagikていないすべてのサーバーおよび/またはGDライブラリをインストールしている。

In about 15 lines I came up with a function that dynamically generated two numbers and allows an array of different signs/text/symbols to tell your users the appropriate math to apply in several different ways.約15行では、私の関数を動的に生成、異なる2つの数字記号の配列/文字/記号をユーザーにいくつかの異なる方法で適用するための適切な数学を教えることが可能となった。 Just add more to make it a bit more complex for spammers.スパマーのためには、もう少し複雑なためには、さらなる追加してください。 You can also mix it up by inserting random characters between words: “Plus” or “PLUS” or “P L U S”.また、単語の間にランダムな文字列を挿入することで、それをミックスすることができます: "プラス"または"プラス"または" P Ł u 』 S "は。

  1. //USAGE: $answer = numbercaptcha();
  2. //****** Call this between <form></form>
  3. //****** $_POST will contain $_POST['number'] _POSTを //****** $_POST will contain $_POST['number']
  4. //****** Check if $_POST['number'] is == to $answer //****** Check if $_POST['number'] is == to $answer
  5. //OPERATORS: Add additional $opperators to the array for more varriation //OPERATORS: Add additional $opperators to the array for more varriation
  6. function numbercaptcha ( ) {
  7. //Set first and second num rand(min,max)
  8. $firstnum = rand ( 5 , 8 ) ;
  9. $secondnum = rand ( 1 , 4 ) ;
  10. $coinflip = rand ( 1 , 2 ) % 2 ; //Picks a random equation type おすすめ $coinflip = rand ( 1 , 2 ) % 2 ; //Picks a random equation type
  11. if ( $coinflip == 0 ) { 場合 if ( $coinflip == 0 ) {
  12. $math = $firstnum $secondnum ;
  13. $operators = array ( " " , "Added To" , "Plus" ) ; 加え $operators = array ( " " , "Added To" , "Plus" ) ;
  14. $operatorschoice = rand ( 1 , 3 ) % 3 ;
  15. } else {
  16. $math = $firstnum - $secondnum ;
  17. $operators = array ( "-" , "Minus" ) ;
  18. $operatorschoice = rand ( 1 , 2 ) % 2 ;
  19. }
  20. echo $firstnum . " " . $operators [ $operatorschoice ] . " " . $secondnum . " = <input type= \" text \" name= \" number \" maxlength= \" 2 \" size= \" 5 \" >" ; $エコーecho $firstnum . " " . $operators [ $operatorschoice ] . " " . $secondnum . " = <input type= \" text \" name= \" number \" maxlength= \" 2 \" size= \" 5 \" >" ; = echo $firstnum . " " . $operators [ $operatorschoice ] . " " . $secondnum . " = <input type= \" text \" name= \" number \" maxlength= \" 2 \" size= \" 5 \" >" ;
  21. return $math ;
  22. }

Nothing is foolproof, this can be cracked too.何も誰にでもできるが、これもクラックすることができます。 But it will get you around the typical bot or “script kiddy” that wants to spam your site and cause more of a headache for the pros to want to deal with.しかし、典型的なボットの周りや、あなたのサイトにスパムに対処するには、プロのための頭痛の原因を"スクリプトキディー"あなたを得るでしょう。 When this gets beaten and spammers have automated their way around my method then I have another plan in mind.この暴行を取得し、スパマー私は心の中で別の方法を計画している私の周りの道を自動化している。 Thats another day however.もう1日は特に。

For now, I’ve found the key to avoiding spam is to stay away from typical CMS and/or forum systems that contain predictable code among several other cookie cutter sites.今のところ、私はスパムを避けるための鍵を見つけた典型的なCMSの距離および/またはフォーラムのシステムからは、いくつかの他のクッキーのカッターのサイト間で予測可能なコードが含まれて滞在している。 This defiantly isn’ta solution for most of you.あなたの大半をこのふてくされないソリューションです。 But if you implement this code or something like it in the places that matter…something unique…you can break a spammers script by keeping your site out of the typical expectations of a spammer.しかし場合は、場所は、何か独自の問題... ...あなたはスパマーの典型的な期待をあなたのサイトを維持して、スパマーのスクリプトにこのコードを破ることができるかのように実装しています。

Also, a friend mentioned the addition/subtraction might be too hard for users and you’ll have lost comments/email.また、友人を追加/減算述べたように、ユーザーのハードすぎるかもしれないとのコメントを失っているよ/メール。 Maybe you’re considering that too?かもしれませんがあまりにも検討しているか? I have to question the quality of user that is leaving you a comment or sending you an email if they can’t add or subtract single digit numbers.私の場合は、コメントを残しているか、または追加することはできません場合は、 1桁の数字を引くメールを送信するユーザーの質を問題にしている。 Though you could increase the difficulty by adjusting the randomization seed and throw in some long division.ただし場合は、ランダム化種子部門の調整と一部の長いスローして、困難を増す可能性がある。 That might be overkill :).それはやり過ぎかもしれない: ) 。

If you’re keeping up with the spam series you might want to check out my last post: 5 Ways To Catch And Prevent Website Form Spam - Part 1 .もしあなたが私の最後の投稿をチェックアウトすることが、スパムシリーズ: 5つキャッチとウェブサイトのフォーム迷惑メール-防止のためにパート1を維持している。 I updated the second block of code on that page to check the referring URL to prevent form abuse.私はそのページをチェックするためのコードの2番目のブロックの更新は、 URL形式の乱用を防ぐために言及。



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

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

8 Plus 2 = 8プラス2 =

Custom Theme by Rob Malon | Content & Design © 2008 - Rob Malon [dot] Com. カスタムテーマロブマロン|コンテンツ&デザイン© 2008 -ロブマロン[ドット]コム。 "));
"));