captcha replacement I made

Discussion in 'PHP' started by Cesay, Sep 19, 2008.

  1. #1
    I doubt there is anything actually new here, I've read about random ideas on this subject and had a few of these on my own, but I haven't seen anything like this in one package that's easy to use. I originally wrote for a client and it has reduced spam posts to zero since being put in place. I realize there is room for improvement, just decided to post it to get suggestions and ideas from others. This class works on all html types of forms(buttons, checkboxes etc) and is completely transparent to the end user(unless they try to spam you and their post gets dropped).:p

    There's a little demo in the zip.

    http://www.bpform.com/

    P.S.
    I hate visual captchas.
     
    Cesay, Sep 19, 2008 IP
    R-ampage, JEET and classic like this.
  2. Dollar

    Dollar Active Member

    Messages:
    2,598
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    90
    #2
    The Form Name Hashing is a good idea I've thought of myself, with each unique user to have the name field with a different hash. It would make it impossible for a bot to figure out what is what.

    Also a good way I've found to stop bots is too just Hide the form in escaped javascript and then put it in a document.write unescape.
     
    Dollar, Sep 19, 2008 IP
  3. Cesay

    Cesay Peon

    Messages:
    121
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, the hashing is also salted with the day of the month so it's always changing. You could get creative with the salt so it's unique depending on ip, user agent etc, I just kept it basic.
     
    Cesay, Sep 19, 2008 IP
  4. classic

    classic Peon

    Messages:
    96
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well I can write a particular bot for your site and can do it in a few hours
    but if I have to make a bot for captcha images , heh I would need 1000 monkeys to tell me whats on image ,

    I just finished reading your site, and I apologize for the nuances I just said :) ,
    your class do provide nearly impossible way to decode the field names so thus is better replacement for images
     
    classic, Sep 19, 2008 IP
  5. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #5
    Very nice :) I think I'll use this now instead of images.
    Green added :)
     
    JEET, Sep 20, 2008 IP
  6. muthukswamy

    muthukswamy Active Member

    Messages:
    676
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Looks good. God I don't have to type those captcha's again, if this gets implemented everywhere.
     
    muthukswamy, Sep 20, 2008 IP
  7. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #7
    Very nice thought!!! the idea is simple and will block alot of bots!
     
    EricBruggema, Sep 20, 2008 IP
  8. R-ampage

    R-ampage Banned

    Messages:
    596
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Dude that's ingenious! Only flaw I can find is if it's a login form and people are using things such as Roboform.

    If this was only used for like contact forms, then it would perfect :)

    +Rep
     
    R-ampage, Sep 20, 2008 IP
  9. Cesay

    Cesay Peon

    Messages:
    121
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #9
    That's a good point. In that case I'd use it on the reg page and posting page, but not login. :D
     
    Cesay, Sep 20, 2008 IP
  10. feha

    feha Active Member

    Messages:
    1,005
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #10
    Great ...
    Here is my version
    http://www.vision.to/antispam-techniques.php :)

    I do have also hash and form "serial number" ...
    the hash contains session, time, ip, browser and file name ... etc ...

    :)
    spam dropped 100%
    analyze contact form
    http://www.vision.to/contact.php

    It could be made even harder if adding to an array different form field names for "nocomment" field, so it checks against with each page load ...
     
    feha, Sep 20, 2008 IP