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. كلمة التحقق (مؤتمتة بالكامل العامة لاختبار تورينج اقول للكمبيوتر والبشر بصرف النظر) يمكن القول إن واحدة من أفضل الطرق لضرب غالبية من غير المرغوبة التي تتلقاها. Its become popular with web 2.0 applications. تصبح دورتها الشعبية مع تطبيقات الويب 2.0. So much that its become widely used and thus spammers found a needed to crack it. حتى أن الكثير أصبح يستخدم على نطاق واسع ، وبالتالي spammers وجدت حاجة للقضاء عليه. 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. وإذا كان يمكنك إنشاء جديدة وفريدة من نوعها ولكن كلمة التحقق ، فسوف يكون أكثر أمنا بعد ذلك الكثير الذي يميل الجميع لاستخدام نفس السيناريو الموقع بعد الموقع.

About a year ago I tried a simple addition script. قبل نحو سنة حاولت بسيطة وبالإضافة إلى البرنامج النصي. 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. ونظرا لعدد واحد يمكن بسهولة نسخ أكثر من جانب ، ولأن السيناريو ليس لخدمة جميع لقد عملت مع ImageMagik لها و / أو كلمة المدير العام مكتبة تركيبها.

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 في خطوط جئت حتى مع وظيفة أن يتكرر في رقمين ويتيح مجموعة من علامات مختلفة / النص / رموز اقول لمستخدميك المناسبة لتطبيق الرياضيات في عدة طرق مختلفة. Just add more to make it a bit more complex for spammers. مجرد إضافة المزيد لجعلها أكثر تعقيدا بعض الشيء لspammers. You can also mix it up by inserting random characters between words: “Plus” or “PLUS” or “P L U S”. يمكنك أيضا أنها مزيج حتى بإدراج حرفا عشوائية بين الكلمات : "بلاس" أو "المحسن" أو "لام ف يو إس".

  1. //USAGE: $answer = numbercaptcha();
  2. //****** Call this between <form></form>
  3. //****** $_POST will contain $_POST['number']
  4. //****** Check if $_POST['number'] is == to $answer
  5. //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 ) {
  12. $math = $firstnum $secondnum ;
  13. $operators = array ( " " , "Added To" , "Plus" ) ;
  14. $operatorschoice = rand ( 1 , 3 ) % 3 ; ، $operatorschoice = rand ( 1 , 3 ) % 3 ;
  15. } else {
  16. $math = $firstnum - $secondnum ;
  17. $operators = array ( "-" , "Minus" ) ;
  18. $operatorschoice = rand ( 1 , 2 ) % 2 ; ، $operatorschoice = rand ( 1 , 2 ) % 2 ;
  19. }
  20. 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. عندما يحصل هذا للضرب وspammers وقد الآلي في طريقهم نحو بلدي الطريقة ثم لدي خطة أخرى في الاعتبار. Thats another day however. Thats يوم آخر غير.

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. لالآن ، لقد وجدت المفتاح لتجنب البريد المزعج هو البقاء بعيدا عن النمطية اتفاقية الأنواع المهاجرة و / أو نظم المنتدى التي تحتوي على شفرة يمكن التنبؤ بها بين عدة مواقع أخرى لقطع الكعكة. 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. ولكن إذا كنت تنفيذ هذا القانون أو شيء من هذا القبيل في الأماكن التي المسألة... شيء فريد... يمكنك كسر spammers البرنامج النصي من جانب حفظ موقعك من التوقعات النمطية من مرسلي البريد المزعج.

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. لقد لمسألة نوعية للمستخدم أن يترك لك تعليق أو إرسال رسالة الكترونية إذا كنت لا تستطيع أن تضيف أو تحذف منها واحدة أرقام. 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. أنا تحديث الثانية من قانون منع على أن صفحة للتحقق من العنوان اشارة لمنع إساءة استعمال شكل.



Leave A Comment: ترك التعليق :

Comments RSS Feed التعليقات آر إس إس

6 4 = 6 4 =

Custom Theme by Rob Malon | Content & Design © 2008 - Rob Malon [dot] Com. عرف الموضوع من جانب روب Malon | المحتوى و التصميم © 2008 -- روب Malon [نقطة] كوم. "));
"));