Mar
2007
5

Spam Free and Lovin It!

by Matt

As I cruise around the internet I have noticed a lot of people using some funky email addresses. For example, me (at) domain (dot) com. This just doesn't cut it...When you do this the spammers have won, and we can't have that.

My buddy Alain showed me a good way to hide your email using javascript. This formats your email address behind the scenes but still provide a maito link that allows the public to click on it, and send you an email.

Here is the javascript:

JAVASCRIPT:
  1. <!--   
  2. var username = "username"
  3. var hostname = "domain.com"
  4. var linktext = "Email Me";   
  5. document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + ">" + linktext + "</a>")
  6. //-->

If you don't know anything about javascript... what this code does is rearrange the beginning of your email, and ending of your email. If you use this code and view the source from a webpage you will see that the spam harvesters can't find any valid email address. Just cut and paste the code into you webpages. Of course change the username and domain to your proper email.

If you do not want to add code your website, and you use wordpress, you can install a little sidebar widget I made that adds your contact info. Download Spam Widget Here

Tags:

Popularity: 5% [?]

Other posts you might be interested in
  • Spam - The flip side, what happens when you are a spammer?  Found this post at condodomain: http://www.condodomain.com/blog/realtors-against-realtor-spam-rars/ In my personal opinion, if you get a lot of spam, you don't have a good
  • Realiventblog giving the link love because you deserve it  We added a new plugin to our site today. It is called Link Love, and it rewards passionate readers by
  • Widgets, Plugins and Themes  Plugins: All plugins are downloaded as .zip files. to install them, just unzip and move to your plugin folder, activate,
  • Blogroll  Add your website to Realivent's blogroll, or real estate links. Its simple and will create another traffic link for your
  • The lay is very simple, but only one closet in the bedroom  I want to start a section for Craigslist posts that are soooooo bad they are funny This was in the Sacramento


  • Close
    E-mail It
    Rodney's Adsense-Deluxe Add ons plugged in.