Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Captcha

  1. #1
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383
    soon terminated?

    Preventing SPAM without using a CAPTCHA
    Concept:
    For people who don’t know this trick already, here is how you do it:

    1. Add an input field to your form, with some interesting name, for example ‘URL’.
    <input name="url" type="text" value=""/>
    2. Hide the input box using css so that users(genuine) cannot see it directly.
    <style>
    .style1 {
    display: none;
    }
    </style>
    <p class="style1"><input name="url" type="text" value=""/></p>
    3. While processing the form check if the “url” contains any value. If it does, reject the post or put it for moderation.
    if (strlen(trim($_POST['url'])) > 0){
    //It is a spam, reject this post here
    }

  2. Everything Related to the Board   -   #2
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    Quote Originally Posted by 100% View Post
    soon terminated?

    Preventing SPAM without using a CAPTCHA
    Concept:
    For people who don’t know this trick already, here is how you do it:

    1. Add an input field to your form, with some interesting name, for example ‘URL’.
    <input name="url" type="text" value=""/>
    2. Hide the input box using css so that users(genuine) cannot see it directly.
    <style>
    .style1 {
    display: none;
    }
    </style>
    <p class="style1"><input name="url" type="text" value=""/></p>
    3. While processing the form check if the “url” contains any value. If it does, reject the post or put it for moderation.
    if (strlen(trim($_POST['url'])) > 0){
    //It is a spam, reject this post here
    }
    And what would that do?

  3. Everything Related to the Board   -   #3
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383
    i have no clue, other than maybe remove captcha?
    :hope:

  4. Everything Related to the Board   -   #4
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    Quote Originally Posted by 100% View Post
    i have no clue, other than maybe remove captcha?
    :hope:


    The way I see it is that would never catch anyone because nobody is entering any text into that field.
    Do they think a bot/computer would do it?

  5. Everything Related to the Board   -   #5
    Think thats the point although thats not why we have it...

  6. Everything Related to the Board   -   #6
    Barbarossa's Avatar mostly harmless
    Join Date
    Jun 2002
    Location
    Over here!
    Posts
    15,180
    I think it is assuming that a bot would detect the hidden input field and feel duty-bound to populate it with something

  7. Everything Related to the Board   -   #7
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383

  8. Everything Related to the Board   -   #8
    Snee's Avatar Error xɐʇuʎs BT Rep: +1
    Join Date
    Sep 2003
    Location
    on something.
    Age
    44
    Posts
    17,985
    Quote Originally Posted by Barbarossa View Post
    I think it is assuming that a bot would detect the hidden input field and feel duty-bound to populate it with something
    Or lyke fill in in that field instead of the proper one, if the field in wot you lyke properly post your posts is the child behind it

    Depending on the bot it might also be possible that changing the field's title- or name-attribute to what you normally call the proper input field might make the bot post innit.


    Dunno, rly, I've never picked any apart, but I think things could work that way.

  9. Everything Related to the Board   -   #9
    peat moss's Avatar Software Farmer BT Rep: +15BT Rep +15BT Rep +15
    Join Date
    May 2003
    Location
    Delta B.C. Canada
    Posts
    10,547
    Its so easy a five year old child could figure it out . Quick somebody fetch a five year old ......

  10. Everything Related to the Board   -   #10
    Barbarossa's Avatar mostly harmless
    Join Date
    Jun 2002
    Location
    Over here!
    Posts
    15,180
    Quote Originally Posted by Snee View Post
    Quote Originally Posted by Barbarossa View Post
    I think it is assuming that a bot would detect the hidden input field and feel duty-bound to populate it with something
    Or lyke fill in in that field instead of the proper one, if the field in wot you lyke properly post your posts is the child behind it

    Depending on the bot it might also be possible that changing the field's title- or name-attribute to what you normally call the proper input field might make the bot post innit.


    Dunno, rly, I've never picked any apart, but I think things could work that way.
    I actually liked the suggestion inside the discussion thread, to have a hidden field and populate it using the javascript on the page. Bots or spiders don't tend to run the javascript on the page, so all you do is ignore the request unless the field is filled in as expected.

    I've put that into our corporate "contact us" page, cos we get a few empty submissions from bots/spiders for some reason

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •