You are here: Re: php/javascript - hiding email addresses « All PHP « IT news, forums, messages
Re: php/javascript - hiding email addresses

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация