Helpful tip [edited version]

Discussion in 'Off Topic Chat' started by Darfion, May 18, 2004.

  1. Darfion

    Darfion Soapbox guru...

    Joined:
    Jun 13, 2003
    Messages:
    1,498
    Likes Received:
    14
    Location:
    Wigan, Lancashire
    Can others edit my Photos:
    Photos OK to edit
    If you'd like to display your email address within your web pages, but are afraid it will be harvested by Spam robots, you can protect yourself. Instead of displaying the usual mailto:you@yourdomain.com, use the following code within your HTML:
    [​IMG]
    When clicked on it will show correctly.

    Hope this helps
     
  2. markc

    markc TPF Noob!

    Joined:
    Mar 8, 2004
    Messages:
    4,237
    Likes Received:
    6
    Location:
    Rochester, NY Velocity: Unknown
    Can others edit my Photos:
    Photos NOT OK to edit
    I've heard that the spiders are on to that trick. I think you need to get a bit more complex for it to work. I use this.

    Code:
    <script language="JavaScript">
    <!--
    	var atsign = "@";
    	var addr = "you"+"raddy"+ atsign +"you"+"rdomain"+"."+"co"+"m";
    	document.write("<"+"a r"+"ef="+"mai"+"lto:"+ addr +" >"+ addr +"</"+"a>");
    -->
    </script>
    (edited to make generic)
     
  3. Walt

    Walt TPF Noob!

    Joined:
    Feb 12, 2004
    Messages:
    1,054
    Likes Received:
    2
    Location:
    BC
    Huh? :shock:
     
  4. oriecat

    oriecat work in progress

    Joined:
    Jul 7, 2003
    Messages:
    3,118
    Likes Received:
    19
    Location:
    Portland OR USA
  5. markc

    markc TPF Noob!

    Joined:
    Mar 8, 2004
    Messages:
    4,237
    Likes Received:
    6
    Location:
    Rochester, NY Velocity: Unknown
    Can others edit my Photos:
    Photos NOT OK to edit
    I prefer the break up the "mailto:" also, so that the spider doesn't even know there there is an address there to begin with.

    Walt, there are programs that go through web pages looking for e-mail addresses to add to spam lists. This is a way to post your address in a manner that hides the address from the 'bot while still allowing people to click on it as normal.
     

Share This Page