I need help with verification (captcha)??

Discussion in 'HTML & Website Design' started by superrichguy, Nov 21, 2006.

  1. #1
    I have a directory site and I get about 200 submissions a day but about 90% are aff links and just spam. I was wondering if anyone here new of a simple code to make them verify they are real. I have seen some that make you type "run" in backwards. Im trying to look for it but I cant find it.
    Anyone know what this is called or do they have a simple code I can put in??
    Thanks
     
    superrichguy, Nov 21, 2006 IP
  2. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #2
    disgust, Nov 21, 2006 IP
  3. superrichguy

    superrichguy Well-Known Member

    Messages:
    2,225
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    195
    #3
    Thanks I will check it out.
     
    superrichguy, Nov 21, 2006 IP
  4. Komodo Tale

    Komodo Tale Peon

    Messages:
    140
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I write all my directories from scratch using PHP. Here is what I do.

    Place this in your form:

    <p>Are You Human? -
    <?php
    srand((double)microtime()*1000000);
    $t1 =( rand(1,5));
    $t2 =( rand(1,5));
    $t3 = $t1 + $t2;
    ?>

    <input name="test1" type="hidden" value="<?php echo $t3; ?>">
    <p>
    What is <?php echo $t1; ?> + <?php echo $t2; ?>?
    <br />
    <input name="test2" type="text" size="3" />
    </p>

    ===========================================

    Place this in your results page

    $test1 = $_POST['test1'];
    $test2 = $_POST['test2'];

    if($test1 <> $test2){
    $verified = 'NO' ;
    echo '<h2>Did you make an error in your addition? We use this to foil spam robots.</h2>' ;
    }
    if($verified <> 'NO'){
    print "<h1>ECHO/PRINT YOUR HTML HERE IN PHP FORMAT</h1>";
    }
     
    Komodo Tale, Nov 21, 2006 IP
  5. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #5
    scripts like the above (that use common sense/logic questions instead of image verification) also have the advantage of being more accessable to users
     
    disgust, Nov 21, 2006 IP
  6. superrichguy

    superrichguy Well-Known Member

    Messages:
    2,225
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    195
    #6
    Thats exactly what I was looking for. Thanks a million...
    But I was just trying it and I cant get it to fully work?
    You say to "h1>ECHO/PRINT YOUR HTML HERE IN PHP FORMAT</h1>";
    "
    what html am I supposed to put in there and do I leave the echo/ part in? Or am i missing it completly?
    Thanks
     
    superrichguy, Nov 21, 2006 IP
  7. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #7
    you'd just put whatever text you want to appear there, between the <h1> and </h1>
     
    disgust, Nov 22, 2006 IP
  8. jessecooper

    jessecooper Peon

    Messages:
    793
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #8
    that beats the hard to read image scripts, but there may be some bots able to fool it... but not likely

    Great Script!~
     
    jessecooper, Nov 26, 2006 IP
  9. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #9
    bots could only fool it if they specifically have the question/answer already figured out in a database, unless you've got some incredibly sophisticated futuristic AI that you're using to spam stuff with :)
     
    disgust, Nov 26, 2006 IP
  10. jessecooper

    jessecooper Peon

    Messages:
    793
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #10
    lol, i dont have any AI... i barley have any I.... but ya if the db isnt secure it wouldnt work but that is such a far fetched problem anyway
     
    jessecooper, Nov 26, 2006 IP