PHP code that will send all messages to my email account first

Discussion in 'PHP' started by deetech79, Mar 8, 2009.

  1. #1
    Hello,

    I have a guest book page on my site. I've been getting lots of spam ever since I launched it.

    Can anyone please help me with a PHP script that will send all the comments posted to my email address so that I can review it and then post the comments myself?

    I've tried using a PHP script to block IP addresses and also a block of IP addresses, but the same spammers with the IP addresses are still getting through.

    If anyone has PHP code that can really block IP addresses and or blocks of IP addresses, I'll be happy to see it.

    Thank you.
     
    deetech79, Mar 8, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    what about using a captcha?
     
    crivion, Mar 8, 2009 IP
  3. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #3
    .htaccess
    You can deny connections for certain IP's or a whole IP block !
     
    ActiveFrost, Mar 8, 2009 IP
  4. Brooke I. Yates

    Brooke I. Yates Banned

    Messages:
    70
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Block IPs is not a good choice! Using Re-Captcha is a good choice here! It's FREE and easy to use!
     
    Brooke I. Yates, Mar 8, 2009 IP
  5. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #5
    exodus, Mar 10, 2009 IP