Old 27-09-2006, 20:45   #1 (permalink)
www.dmcv.co.uk
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");

?>
  Reply With Quote
Old 28-09-2006, 06:45   #2 (permalink)
MikeMackay
Everything is fine.
 
MikeMackay's Avatar
 
Join Date: Feb 2005
Location: Witham & London
Posts: 772
Send a message via MSN to MikeMackay Send a message via Skype™ to MikeMackay
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
  Reply With Quote
Old 29-09-2006, 08:31   #3 (permalink)
gmwebs
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
  Reply With Quote
Old 19-08-2007, 22:56   #4 (permalink)
intrinzic
www.intrinzicdesignz.com
 
intrinzic's Avatar
 
Join Date: Aug 2007
Posts: 15
Use captcha. Or atleast use some form validation.
Google for captcha scripts.


-------------------------
Web Design E-commerce Web Design Custom Web Design Affordable Web Design
  Reply With Quote
Old 21-08-2007, 19:59   #5 (permalink)
OutThisLife
Not a designer.
 
OutThisLife's Avatar
 
Join Date: Aug 2007
Location: 127.0.0.1
Posts: 31
Send a message via AIM to OutThisLife Send a message via MSN to OutThisLife Send a message via Yahoo to OutThisLife Send a message via Skype™ to OutThisLife
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 #!
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8