Re: Obfuscating E-Mail
| From: | Justin French | Date: | Fri, 04 Oct 2002 17:42:38 +0000 |
| Subject: | Re: Obfuscating E-Mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118897@lists.php.net to get a copy of this message | ||
simple str_replace() stuff will get the address into a mickey at disney
dot com format... but the link needs to be done with javascript, and you
have to accept that it will not work for everyone.
the phpclasses.org site does this along with 1000's of others, so I'm sure
you can find some code.
in fact, phpclasses HAS a few classes to do this too!!! search around for
one that you like.
justin
on 05/10/02 3:36 AM, Ashley M. Kirchner (ashley@pcraft.com) wrote:
>
> What's the best (or easy, whichever) way to obfuscate e-mail addresses,
> either in plain HTML, or through a PHP script to prevent harvesters from
> collecting them? I don't mind if the address shows up as 'mickey at disney
> dot
> com (as opposed to mickey@disney.com), however I want it to be a
> 'mailto:'
> link
> that visitors can just click on. However, for that to work, one needs to put
> the real address in the HREF tag - I want to avoid this and obfuscate it
> somehow, yet maintain the functionality.
>
> Suggestions?
>
> --
> W | I haven't lost my mind; it's backed up on tape somewhere.
> +--------------------------------------------------------------------
> Ashley M. Kirchner <mailto:ashley@pcraft.com> .
> 303.442.6410 x130
> IT Director / SysAdmin / WebSmith . 800.441.3873 x130
> Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
> http://www.pcraft.com ..... . . . Boulder, CO 80303,
> U.S.A.
>
>
>