| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Professional Designer, UK
Join Date: Mar 2006
Posts: 19
|
Php Form Help Please???????
Hi all i am gettting loads of spam mail from my email form how can i stop this? do i need an email verification or sumthing? My code is below i am not a coder so i am asking if any one could please make amendments to my code to help me out? CODE BELOW <?php @extract($_POST); $name = stripslashes($name); $email = stripslashes($email); $comments = stripslashes($comments); mail('dave@dmcv.co.uk'," Dmcv Mail From $name",$comments,"From: $email"); mail("$email","Thank You for visiting dmcv.co.uk", "Dear $name,\n Thank you for your interest in dmcv.co.uk I have recived your email & I will get back to you promptly. \n Please DO NOT respond to this as it is a Auto responce of confermation of your comments. If you wish to contact us by email please do so at dave@dmcv.co.uk\n Kind Regards David Martin"); header("location:".$_SERVER['HTTP_REFERER']."?sent=yes"); ?> |
|
|
|
|
|
#2 (permalink) |
|
Everything is fine.
|
Give the following website page a read over, it should help clear this up and show you how you can code a solution for preventing the spam you are receiving (and most likely sending out unknowingly): http://www.securephpwiki.com/index.php/Email_Injection Hope that helps ! - Mike |
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Sep 2006
Posts: 3
|
Hi Dave, I do believe that the reason you are receiving spam from your own site is because you are displaying your email address on the front page in clear text. SPAMbots are able to automatically collect your email address this way. One way to combat this is to encode your email address into character entities. Have a look at http://www.ohlone.cc.ca.us/org/webce...lencoding.html which should point you in the right direction. HTH |
|
|
|
#4 (permalink) |
|
www.intrinzicdesignz.com
Join Date: Aug 2007
Posts: 15
|
Use captcha. Or atleast use some form validation. Google for captcha scripts. ------------------------- Web Design |
|
|
|
#5 (permalink) |
|
Not a designer.
|
With the bots problem, in the source code of the website on the part that's displaying your email instead of using dave@dmcv.co.uk use this: dave& #64;dmcv.co.uk "& #64;" will keep most of the bots away =] Remember to remove the space between & and #! |
|
![]() |