Hi All,
Here is my problem. I have a pretty straight forward form I use that was developed to hide the mailto: email address. I have use a couple different modifications of it and I am starting to get hit with email injection attacks on one right now.
This first code is the one being hit.....
if(isset($Submit))
{
if($name != "" && $email != "")
{
$message = "Referral Program from Trafick IMS:<br><br>
Name: $name<br>
Email: $email<br>
Friends Name: $friend<br>
Friends Email: $friendmail";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "From: <$email>\n";
$headers .= "Reply-To: <$email>\n";
mail("curtis@trafick.net,$email", "Referral Program Information", $message, $headers);
header("Location: referralthanks.htm");
}
else
{
$error = "y";
}
}
This is the on the same site yet it is not being hit ...yet,
if(isset($Submit))
{
if($name != "" && $email != "")
{
$message = "Quote Request from Website:<br><br>
Name: $name<br>
Email: $email<br>
Location: $where<br>
Comment/Question: $needs<br>
Phone Number: $number";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "From: <$email>\n";
$headers .= "Reply-To: <$email>\n";
mail("curtis@trafick.net,$email", "Quote Request from Website", $message, $headers);
header("Location: thanks.htm");
}
else
{
$error = "y";
Any Suggestions for a bit more security?????
Thanks in Advance!!!!