Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

How to hide e-mail addresses from spammers

Discussion in 'Email' started by ovi, Jun 8, 2005.

  1. ovi

    ovi Guest

    Unfortunately, there are a lot of unscrupulous people who send spam by the thousands each day. Well, here's one way to seriously decrease spam.

    Spammers comb HTML page source with robots looking for addresses that look like fake@ooo.com (hope they try to send to that one!), and they won't be able to do much with addresses coded using the following java script unless they visit every Web page by hand (which would be an ideal punishment for a spammer...).

    Even if you're not a programmer, you should be able to handle this one. Basically, the code keeps the mailto:, your name, and your domain separate in the HTML file, combining them only when the page is browsed. It will even work with FrontPage:

    <script language=javascript>
    // By Joseph McLean <flux@thecentre.com>
    var linktext = "Web Spider";
    var email1 = "webmaster";
    var email2 = "freewebmastertips.com";

    document.write("<a href=" + "mail" + "to:" + email1 + "@" + email2 + ">" +
    linktext + "</a>")

    To customize, replace "Web Spider" with the text you want people to click on. Also, following email1 replace webmaster with your name (if your e-mail address is john@0000.com, put john there). Finally, following email2 replace ufuweb.com with the rest of your address.

    Implement this code and get rid of a lot of spam!

    Anyway this is not the only method, later I will add more method.


Featured Resources (View All)

Share This Page