SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool Using asp randomly generated number for email form security

    Hi Guys

    Some of my clients have been receiving spam emails via their online contact forms i.e strange code been injected into fields and then email sent every 5mins to same email account. I was going to implement a CAPTCHA form, but wondered whether I could achieve the same outcome by generating a random number using asp code every time the page loads and display this number in the form. The user would then type the number in a textfield and submit. On submit I would pass the random number in a hidden fields and evaluate on the receiving page then handle accordingly i.e. redirect back to form if not matched or send email if matched.

    I would prefer this option as I would have more control over the look and style of the random number etc.

    Would this work or can anyone see any issues with this?

    Many thanks in advance.

  2. #2
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool

    Hi - just wondered if anyone had any ideas on this? many thanks

  3. #3
    SitePoint Guru rageh's Avatar
    Join Date
    Apr 2006
    Location
    London, Formerly Somalia
    Posts
    612
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by 9greej10 View Post
    Hi Guys

    Some of my clients have been receiving spam emails via their online contact forms i.e strange code been injected into fields and then email sent every 5mins to same email account. I was going to implement a CAPTCHA form, but wondered whether I could achieve the same outcome by generating a random number using asp code every time the page loads and display this number in the form. The user would then type the number in a textfield and submit. On submit I would pass the random number in a hidden fields and evaluate on the receiving page then handle accordingly i.e. redirect back to form if not matched or send email if matched.

    I would prefer this option as I would have more control over the look and style of the random number etc.

    Would this work or can anyone see any issues with this?

    Many thanks in advance.
    That is more or less CAPTCHA. It will be pretty good and can stop all these spam. So I would encourage you to go ahead and do it
    ------------------


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
  •