-----Original Message-----
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: Monday, June 14, 2010 8:06 AM
To: David Mehler
Cc: php-general
Subject: Re: [PHP] protecting email addresses on a web site

On Mon, 2010-06-14 at 08:02 -0400, David Mehler wrote:

> Hello,
> I've got a site that is needing to have two email addresses on it, one
> for general contact and information and the other for webmaster for
> site problems. I do not want these addresses to become harvested by
> spammers yet i want to make it possible for people to email if needed.
> I can not use javascript for this solution.
> Suggestions appreciated.
> Thanks.
> Dave.

If Javascript isn't a solution (which I can understand for accessibility
reasons) then the only method I've seen that seems to work is to have
the email as an image in the same font style as it would be on the page
if it were just text. Facebook uses this to display contact email
addresses for people, and I've seen it used elsewhere also. The only
other method I've seen is to add in extra characters with a small note
to humans to remove them, but I find this quite a messy solution.

Unfortunately, you can't get away with just a contact form these days if
you're a business, as it's a legal requirement in some countries to have
a contact details available, and not just a contact form.


Another is a CSS solution where you type the email address backwards and
then use the CSS style declaration:
style="direction: rtl; unicode-bidi: bidi-override;"

Marc Hall
HallMarc Websites

__________ Information from ESET Smart Security, version of virus signature
database 5194 (20100614) __________

The message was checked by ESET Smart Security.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to