SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Possible code to stop form mail spam?

    I am getting nothing but spam in my form on one of my sites; but that is nothing new as I am seeing...

    Site is: www.coosbaytv.com click on SUBMIT button for the form.

    Is there a simple piece of code I could slip in that would require something like a full phone number (including area code)? This would stop about 95% of all the spam because I have noticed the same number is entered which is, 123456.

    If this isn't possible, I am open to like suggestions that would work. However, I am not a coder or programmer so it has to be very simple.

    Jay

  2. #2
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I ask people to enter a specific work ... something I have displayed.

    Works so far. Not complicated either.

    There's aslo CAPTCHA method?

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the quick reply but you lost me already...

    1) can you explain further as to asking people to enter a specific work?

    2) I will Google the CAPTCHA

    Thanks, Jay

  4. #4
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by coosbaytv View Post
    1) can you explain further as to asking people to enter a specific work?
    It's not the most scientific way but it works on for this site.

    http://widowswalk.ca/comments/

  5. #5
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YES! This is exactly what I was looking for.

    Now, as a musician, I am sure you can relate but I am a video producer and media person... I am not a coder which is why I use DreamWeaver.

    That said and at the risk of ticking you off with my stupidity, the most important piece of all of this is how to enforce this. Is there something you did that checks the result of what was used in the "progressive" field that rejects the submission if it is not correct?

    Again, I am not far along enough in this stuff to look at your code and answer this question myself (or I would).

    Thanks a bunch!!!

    Jay

  6. #6
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HAHA!!! No worries for thinking of feeling stupid! You're asking questions at least

    Yes, there's a check in the background. The form is written in PHP and once, the user clicks submit, it checks to make sure the word entered in the box is the same as the one I want. If not, it displays a message and brings the form back up.

  7. #7
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You should try optimising the size of your images!
    A 303kB banner is excessive, I sat watching it sloooowly fill in - I didn't wait for the other 6mB to down load though. (and the banner is 1816px wide, when it only needs to be about 720px...)

    A quick screen capture and cutting out of the image resulted in a file a mere 16kB for the banner image.

  8. #8
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks karinne:

    would you mind sharing the code?

    As I said, this would solve so many problems for me.

    Jay

  9. #9
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by coosbaytv View Post
    Thanks karinne:

    would you mind sharing the code?

    As I said, this would solve so many problems for me.

    Jay
    Hey Jay, I don't have access to the code right now but it's just a simple

    PHP Code:
    $word 'progressive';
    $typedword $_GET['typedword'];

    if (
    $typedwrod $word) { ... }
    else { .... } 
    something like that. You might want to head on over the PHP forum ... I'm sure there's some simple code lying around.

  10. #10
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dr John:

    Thanks for the feedback...

    The site will be revised very soon as I am learning new skills daily.
    For one thing, the flower banner will be removed and the "Latest Story" banner will be put in it's place.
    The video will be replaced with a placeholder image and once clicked will then go to video as "opt-in".

    However, as you can see with the funkiness of the box/border issues with the lower third of the page, if you can help solve this dilemma I would love it!

    Jay


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
  •