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.

Captcha help

Discussion in 'PHP' started by crazyryan, Jan 28, 2007.

  1. #1
    Hi, I've tried a few tutorials but I just don't understand captcha.. can anyone give me instructions to add it into the below code or add it for me, thanks.
     
    crazyryan, Jan 28, 2007 IP
  2. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't see a CAPTCHA in your code - do you want us to help you *create* it? Is this a code you bought/downloaded from somewhere?
     
    picouli, Jan 28, 2007 IP
  3. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #3
    Yeah, I would like help in creating it.
     
    crazyryan, Jan 28, 2007 IP
  4. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #4
    picouli, Jan 28, 2007 IP
  5. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I created a sample script which incorprates a question type captcha into a form. This is the thread:

    http://forums.digitalpoint.com/showthread.php?t=229690

    For image captchas I use code created by Simon Jervis' php-captcha

    I keep that in a separate file. I make sure sessions are started in both that file and the form submission file. In the part of the form which includes the captcha looks something olike this:

    <tr>
    <p>'.$captchaERR.'</p>
    <input type="text" name="captcha" value=""  size="50" /><br />
    <img src="http://localhost/captcha.php" />
    
    Code (markup):
    The captcha.php script displays an image at that point in the form. The value in the captcha is saved into a session variable. After the user submits the form, their response to the captcha is matched with the one saved in the session variable. If they are the same, the user passed the test, otherwise redisplay the form showing the error.
     
    clancey, Jan 28, 2007 IP
  6. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #6
    Barti1987, Jan 28, 2007 IP
  7. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #7
    This guy (below) claims most CAPTCHAs have important security risks, and his free one is better.
    ~~~~~~~~~
    ~~~~~~~~~
    "A lot of CAPTCHAs are secure against OCR attacks, but fail to account for other attacks, such as session re-use and cross-vhost file inclusion on shared servers."
    http://www.puremango.co.uk/cm_php_captcha_script_113.php
    ~~~~~
    I want to tackle the 'learning curve' on this.
    Any 'experts' have advice on if his claims are 'valid', and if this free script is 'useful.'

    Thanks :)
     
    gemini181, Jan 28, 2007 IP
  8. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The puremango implementation is solid. Glancing through the code I did not see where it specifically protects against "session re-use and cross-vhost file inclusion on shared servers".

    However, I would never discourage you from using it. It is certainly a useful implementation.
     
    clancey, Jan 28, 2007 IP
    gemini181 likes this.
  9. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #9
    Thanks :)
    ~~~~~~~~~
    I'm also going to look at the tutorials posted in this thread, good topic.
     
    gemini181, Jan 28, 2007 IP
  10. w0lfenst1en

    w0lfenst1en Well-Known Member

    Messages:
    128
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #10
    yo i was also lookin for the same and got the tutorials thanks all :D
     
    w0lfenst1en, May 15, 2008 IP
  11. SEOSpeakS

    SEOSpeakS Banned

    Messages:
    111
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    you must be looking for your directory, you need to checked which captcha phpld directory scripts are using, i think they are efficient.
     
    SEOSpeakS, May 30, 2008 IP