Re: hide email address

by Kukla Fran and Ollie <weblists2001(at)yahoo.com>

 Date:  Mon, 21 Jan 2002 09:48:13 -0800
 To:  <hwg-basics(at)hwg.org>
 Cc:  SASS_head_ <shawn(at)headworms.net>, Lori Eldridge <lorield(at)qwest.net>
 References: 
  todo: View Thread, Original
Not necessarily.

Intelligent spyders will be able to read this with no problem because the 
JavaScript actually writes the email address with the page as it is 
rendered.  On top of that, using JavaScript places this in the context of a 
user dependency -- if a user has JavaScript turned off, they will not see 
the email address.

Another method is to encode the email address, changing it from its ASCII 
characters into its decimal equivalents.

You can go to http://www.wbwip.com/wbw/emailencoder.html and try it yourself.

So this address,  yourname(at)youraddress.com is encoded to

&#121;&#111;&#117;&#114;&#110;&#097;&#109;&#101;&#064;&#121;&#111;&#117;&#114;&#097;&#100;&#100;&#114;&#101;&#115;&#115;&#046;&#099;&#111;&#109;

A web page using this type of encoding will "display" the email address to 
the human user as yourname(at)youraddress.com, but the actual source code will 
be in decimal.

If you are afraid you might mess up the long decimal coding, then use only 
those parts as necessary.  Changing only the "@" in an address makes it a 
bit easier: yourname&#064;youraddress.com

Kukla


At 09:00 AM 1/21/02 -0600, SASS_head_ wrote:
>This will keep robots from finding your email address while scanning your
>site.  It will make it a little harder for people to see it too.  You could
>probably hide it in an external file too so people couldn't see it by
>looking at the page source.
>
><script language="Javascript">
><!--
>var name="yourname";
>var atsign="@";
>var domain="yourdomain";
>var dotcom=".com";
>document.write("<div align=center>Contact me ");
>document.write("<a href=mailto:", name+atsign+domain+dotcom,">HERE</a>");
>document.write("</div>");
>//-->
></script>
>
>--
>SASS_head_
>headworms.net
>
> > From: Lori Eldridge <lorield(at)qwest.net>
> > Date: Fri, 18 Jan 2002 17:59:02 -0800
> > To: hwg-basics(at)hwg.org
> > Subject: hide email address
> >
> > Hi All,
> >
> > I'm getting so much junk email now (I have my email address scattered 
> over 12
> > websites) and I'm wanting to hide the addy from spammers. I know there is a
> > code to enable a person to email you but it doesn't show the email 
> address and
> > also spammers can't have access to it.
> >
> > Anyone know how to do this?
> >
> > thanks in advance,
> > lori
> >


_________________________________________________________
Do You Yahoo!?
Get your free (at)yahoo.com address at http://mail.yahoo.com

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA