Challenging the user with a dynamic GIF to ensure theyre human

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave Turner

    Challenging the user with a dynamic GIF to ensure theyre human

    On some sites there is an image that is dynamically generated at page load,
    which simply has a few random characters like "a5J7" printed on it (which
    change with each page refresh), and the user must enter in those characters
    they see in a textbox as if it was a password. This allows the website to
    confirm that the visitor is a human, and not just an automated script.

    Does anyone know how (if?) this can be done with PHP? my Googling wasnt very
    fruitful :(


  • Anonymous

    #2
    Re: Challenging the user with a dynamic GIF to ensure theyre human

    Dave Turner wrote:[color=blue]
    >
    > On some sites there is an image that is dynamically generated at page load,
    > which simply has a few random characters like "a5J7" printed on it (which
    > change with each page refresh), and the user must enter in those characters
    > they see in a textbox as if it was a password. This allows the website to
    > confirm that the visitor is a human, and not just an automated script.
    >
    > Does anyone know how (if?) this can be done with PHP? my Googling wasnt very
    > fruitful :([/color]

    Sure, that's actually quite easy.

    Check the chapter "XLVI. Image Functions" in the PHP manual.

    You'll first have to create some random string and then use the image
    functions to output that string as a GIF, JPEG or whatever. There are
    some simple examples in the manual that will certainly help you with
    that. Check the example given for the imagestring() function.

    Bye!

    Comment

    • Norman Peelman

      #3
      Re: Challenging the user with a dynamic GIF to ensure theyre human

      Try http://psbweb.mirrors.phpclasses.org...kage/1163.html

      Norm
      --
      FREE Avatar hosting at www.easyavatar.com


      "Dave Turner" <nobody@nowhere .nohow> wrote in message
      news:4278ed6e$1 @quokka.wn.com. au...[color=blue]
      > On some sites there is an image that is dynamically generated at page[/color]
      load,[color=blue]
      > which simply has a few random characters like "a5J7" printed on it (which
      > change with each page refresh), and the user must enter in those[/color]
      characters[color=blue]
      > they see in a textbox as if it was a password. This allows the website to
      > confirm that the visitor is a human, and not just an automated script.
      >
      > Does anyone know how (if?) this can be done with PHP? my Googling wasnt[/color]
      very[color=blue]
      > fruitful :(
      >
      >[/color]


      Comment

      • R. Rajesh Jeba Anbiah

        #4
        Re: Challenging the user with a dynamic GIF to ensure theyre human

        Dave Turner wrote:[color=blue]
        > On some sites there is an image that is dynamically generated at page[/color]
        load,[color=blue]
        > which simply has a few random characters like "a5J7" printed on it[/color]
        (which[color=blue]
        > change with each page refresh), and the user must enter in those[/color]
        characters[color=blue]
        > they see in a textbox as if it was a password. This allows the[/color]
        website to[color=blue]
        > confirm that the visitor is a human, and not just an automated[/color]
        script.[color=blue]
        >
        > Does anyone know how (if?) this can be done with PHP? my Googling[/color]
        wasnt very[color=blue]
        > fruitful :([/color]

        Keyword: Captcha

        --
        <?php echo 'Just another PHP saint'; ?>
        Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

        Comment

        Working...