1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Question about kaptchas

Discussion in 'PHP' started by NoamBarz, Jun 12, 2007.

  1. #1
    I'd like to code a captcha script. At first, I thought life would be easy. All I need to do is create several images that display the captcha code, store these on the server and in a database. Then simply randomly select one from the database where I'd store the image path and the code within the image and everything else would be straight forward. I now understand that hacking this method is really easy. All that one needs to do is find the directory on the server where the images are stored, open the files, look at them and associate the name of the file with the visible code. So my idea about captchas doesn't seem that clever anymore.


    A better way would be to generate the captchas on the fly, without storing them in a db table or in a directory. The problem is I don't know how to create these captchas. Does anyone know how one can manipulate an image in PHP?
     
    NoamBarz, Jun 12, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    You should search captcha tutorials on google, there are many methods of creating images, you should read as much as you can and use what parts you like from each site .....

    There are sooo many ways it would be silly to post one.
     
    krakjoe, Jun 12, 2007 IP
    NoamBarz likes this.
  3. *louie*

    *louie* Peon

    Messages:
    48
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    *louie*, Jun 12, 2007 IP
    NoamBarz likes this.
  4. coderbari

    coderbari Well-Known Member

    Messages:
    3,168
    Likes Received:
    193
    Best Answers:
    0
    Trophy Points:
    135
    #4
    search the open source sites and you will get lots of methods for captcha.
    blend them together and make a good one :D
     
    coderbari, Jun 12, 2007 IP
    NoamBarz likes this.
  5. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #5
    dp-user-1, Jun 12, 2007 IP
    NoamBarz likes this.
  6. NoamBarz

    NoamBarz Active Member

    Messages:
    242
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Thanks everyone. I found something that works. Rep added.
     
    NoamBarz, Jun 13, 2007 IP