|
Posted by noSpAm0000 on 05/22/05 06:18
On Sat, 21 May 2005 17:33:53 -0700, ncf wrote:
> I would strongly suggest against using javascript, as some people use a
> text-only browser or browse with javascript disabled (to stop the ads
> and/or for improved security). Might I instead recommend that you
> simply do an (X)HTML escape on the characters in the email address?
>
> I can't say that the following will work, as I just wrote it up off the
> top of my head, but here is some example conceptual code.
>
> function html_escape_str($strval)
> {
> $new = '';
> for ($i=0;$i<strlen($strval);$i++)
> {
> $new .= '&#'.ord(substr($strval,$i,1));
> }
> return $new;
> }
Thanks for that code. It's great. Do you think that is enough to
stop email harvesting software? If a browser can read it, why can't a
harvesting program?
Navigation:
[Reply to this message]
|