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 (Εντελώς Automated Public Turing δοκιμή για να πούμε και του ανθρώπου Εκτός υπολογιστές) είναι αναμφισβήτητα ένας από τους καλύτερους τρόπους για τη χαριστική βολή η πλειοψηφία των ανεπίκλητων ηλεκτρονικών μηνυμάτων που λαμβάνετε. 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. Τόσο ότι η ευρέως και χρησιμοποιούνται έτσι 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. Εάν μπορείτε να δημιουργήσετε ένα νέο και μοναδικό CAPTCHA ωστόσο, θα είναι πολύ ασφαλέστερο στη συνέχεια όλους όσους τείνουν να χρησιμοποιούν το ίδιο σενάριο 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. Όταν χρησιμοποιώ κάτι σαν αυτό έχω ακόμα λιγότερο ξεφύγουν από spam. So I took the addition script a step further. Έτσι πήρα την προσθήκη script ένα βήμα περαιτέρω. 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 ή / και βιβλιοθήκη 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 γραμμές ήρθα με μια λειτουργία που δημιουργείται δυναμικά δύο αριθμούς και επιτρέπει μια σειρά από διαφορετικά σημεία / κείμενο / σύμβολα για να πούμε τα σκόπιμο οι χρήστες σας μαθηματικά να εφαρμόζουν με διάφορους τρόπους. 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”. Μπορείτε επίσης να αναμιχθεί με την προσθήκη τυχαίας χαρακτήρες μεταξύ λόγια: "Plus" ή "συν" ή "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
  11. if ( $coinflip == 0 ) {
  12. $math = $firstnum $secondnum ;
  13. $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 \" >" ;
  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. Αλλά θα σας BOT γύρω από το τυπικό ή «σενάριο kiddy" ότι θέλει να spam δικτυακό σας τόπο και να προκαλέσει περισσότερες από πονοκέφαλο για την προοπτική να θέλουν να αντιμετωπίσουν. 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. Για τώρα, έχω βρεθεί το κλειδί για την αποφυγή του spam είναι να μείνετε μακριά από το τυπικό, CMS και / ή συστήματα που περιέχουν φόρουμ προβλέψιμο κώδικα, μεταξύ πολλών άλλων τόπων cookie κοπής. This defiantly isn’ta solution for most of you. Αυτή η προκλητικά isn'ta λύση για τους περισσότερους από εσάς. 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. Επίσης, ένας φίλος που την προσθήκη / αφαίρεση μπορεί να είναι πολύ σκληρό για τους χρήστες και θα έχετε χάσει σχόλια / 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. Έχω να αμφισβητεί την ποιότητα του χρήστη που αφήνει κάποιο σχόλιο σας ή να σας στέλνει ένα email και αν δεν μπορούν να προσθέσετε ή να αφαιρέσετε μονοψήφιους αριθμούς. 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 . Αν σας να παρακολουθήσουν την σειρά spam ίσως να θέλετε να δείτε το τελευταίο μου post: 5 Τρόποι για να πιάσει και την πρόληψη φόρμα Spam - Μέρος 1. I updated the second block of code on that page to check the referring URL to prevent form abuse. Θα ενημερωθεί η δεύτερη ομάδα του κώδικα σε αυτή τη σελίδα για να ελέγξετε την αναφερόμενο URL για την πρόληψη μορφή κακοποίησης.



Leave A Comment: Αφήστε ένα σχόλιο:

Comments RSS Feed Σχόλια RSS Feed

5 Minus 1 = 5 μείον 1 =

Custom Theme by Rob Malon | Content & Design © 2008 - Rob Malon [dot] Com. Custom Theme Ρομπ Malon | Content & Design © 2008 - Ρομπ Malon [dot] Com. "));
"));