Call us Toll-Free:
1-800-218-1525
Live ChatEmail us

 Sponsors

No Spam Email Script

Code Wizard, 12-30-2006

This is a very, very simple script written to help stop unwanted emails sent to your email address that was snifted out by spam programs that search websites looking for mailto: tags. With this code the spam programs can not retrieve your email addresses and in return you recieve less spam. Enjoy!

<?php

// Script written by David Smith - webmaster@indywebdesign.com
// Feel free to modify as you see fit.
// Change yourdomain.com to your domain without the www.
// Call script like <A HREF="nospam.php?email=username">Email Username</A>

$domain = "yourdomain.com";

if ($email) {
header ("Location:mailto:$email@$domain");
}
else {
echo "Houston, We have a problem! No Email was present...";
}
?>
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions