Hiding email addresses

Discussion in 'Programming/Scripts' started by myles, May 13, 2005.

  1. myles

    myles New Member

    Is it possible to hide email addresses from spam harvesters in HTML pages? The email address should remain clickable and readable for humans...

    Myles
     
  2. joe

    joe New Member HowtoForge Supporter

    I heard that using javascript to print the email address sometimes helps. something like

    Code:
    document.write('email@domain.com')
    
    since most harvesters don't process javascript.
     
  3. root

    root New Member

  4. beatty_t

    beatty_t New Member

    Email Scrambler!

    I use a little javascript I found at dynamicdrive.com... It's pretty clever as it allows you to pick a word or symbol to use in place of "@" when you enter a "mailto:", but when you click on the "mailto:" link, the javascript replaces your symbol with "@"!... It's rediculously easy to use...

    Get it here! http://www.dynamicdrive.com/dynamicindex9/emailscrambler.htm
     
  5. bLuTm8

    bLuTm8 New Member

    replace all email addresses in ur website with transparent graphics (gif/png)

    example: http://www.freefm.de/modules.php?name=Content&pa=showpage&pid=12

    and add this little code as image link
    PHP:
    <a href="mailto.php?to=emailaddress&subject=emailsubject"><img src="image.gif" alt="mailme" title="mailme" border="0"></a>
    mailto.php:
    PHP:
    <?php
    $name
    =$_GET['to'];
    $subject=$_GET['subject'];
    // echo "mailto:".$name."@domain.tld?subject=".$subject;
    header("Location: mailto:".$name."@domain.tld?subject=".$subject);
    exit;
    ?>
     
  6. SamuelBlood

    SamuelBlood New Member

    hi...

    I use a little javascript I found at dynamicdrive.com... It's pretty clever as it allows you to pick a word or symbol to use in place of "@" when you enter a "mailto:", but when you click on the "mailto:" link, the javascript replaces your symbol with "@"!... It's rediculously easy to use...
    I'm always using it to encode my email addresses.:eek:
     

Share This Page