Any other ideas on how to protect my email address?
Main Topics
Browse All TopicsWith my last website I had a serious spam problem. This time I want to make sure that spammers can't just run automated programs to scan my site for my email address. If that's even how they got it.
I still want users to be able to click on my email address on the contact page and email me. Here is my idea.
1) Use an image to show the email address
2) link to a php page that redirects
example: <a href="/email_redir.php"><i
/email_redir.php
--------------
<? header("location: mailto:myemail@mydomain.co
What do you think? Will this help?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi itcdr,
http://www.golivecentral.c
Cheers!
Putting the email in ascii sounds like a good solution. What if I have the email in an image and then link with a mailto plus email in ascii? Will that be a good solution?
I could have an email form, but I would rather have users email directly (makes sure they have an actual email to respond to and less chance of that response being caught in their bulk folder if they have already emailed me). I could just have the image with the email, but then that gets irritating for the user to have to manually type in my email address.
You can also use javascript to conceal it from most automated scripts:
<SCRIPT TYPE="text/javascript">
emailE=('yourname@' + 'emailserver.com')
document.write(
'<A href="mailto:' + emailE + '">'
+ emailE + '</a>'
)
</SCRIPT>
(sourced from here: http://www.joemaller.com/j
That way, it's still readable in the code, and you don't need to create images...
This site tries to parse your page and get the email addresses out (as a test), so you can see if your solution is good enough:
http://willmaster.com/poss
Here's a PHP function that uses the idea presented by TerryAtOpus. If you're willing to use PHP, it'll look pretty clean in the code, but will look like a mess in the output, and the spiders won't be able to parse it (unless they know how to interpret javascript).
<?php
function printEmailAddress( $email )
{
$parts = explode( '@', $email );
echo '<script type="text/javascript"> var d = document;';
echo 'd.write("<a href=\'mailto:");';
echo 'd.write("'.$parts[0].'");
echo 'd.write("@");';
echo 'd.write("'.$parts[1].'");
echo 'd.write("\'>");';
echo 'd.write("'.$parts[0].'");
echo 'd.write("@");';
echo 'd.write("'.$parts[1].'");
echo 'd.write("</a>");</script>
}
printEmailAddress("fake@ma
?>
>> http://willmaster.com/poss
Very helpful. Putting the email in ASCII didn't stop this from finding it. But putting it in javascript separated did. Thanks!
Business Accounts
Answer for Membership
by: TeRReFPosted on 2007-01-23 at 15:55:38ID: 18381042
Not really I think, they'll just follow the link to email_redir.php and will find it like that...