Contact Script!

Discussion in 'PHP' started by rochow, Nov 4, 2007.

  1. #1
    Below is an email script I spent the good part of today working on.

    What are some improvements I can make? My server got hacked recently, and the only script was a mail one, so there must have been some vunerability they used to get in (or they got the root p/w but it doesn't look likely)

    Feel free to use this on your own sites. I'm going to add in the option of using captcha soon :)

     
    rochow, Nov 4, 2007 IP
  2. ForumJoiner

    ForumJoiner Active Member

    Messages:
    762
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    83
    #2
    How about this, to be sure that you can't be hacked?

    After the user clicks "Submit", you write the exact e-mail in a text (.txt) file on the server. You send yourself a plain, safe, eMail with a link to that text file. In this way, you see exactly what tricks are played on you. You recorded the IP of the sender. Even if you can't find that person who sends spam, you can block that IP.
     
    ForumJoiner, Dec 11, 2007 IP
  3. wootwoot

    wootwoot Peon

    Messages:
    118
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you might wanna add a captcha for better security
     
    wootwoot, Dec 11, 2007 IP
  4. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #4
    I haven't got any spam so far, so I haven't felt the need to add it in yet (the site isnt a top 100,000 alexa ranking or anything)
     
    rochow, Dec 12, 2007 IP
  5. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #5
    Barti1987, Dec 12, 2007 IP