Search Engine Spiders
  Home arrow Search Engine Spiders arrow Page 2 - Protect Against Invaders by SPAM-Proof...
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Mobile Linux 
APP Generation ROI 
IBM® developerWorks 
SEO Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SEARCH ENGINE SPIDERS

Protect Against Invaders by SPAM-Proofing Your Website
By: Benjamin Pfeiffer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 17
    2004-05-05

    Table of Contents:
  • Protect Against Invaders by SPAM-Proofing Your Website
  • How to Use the JavaScript Method
  • Using mod_rewrite
  • Blocking Malicious "Good for Nothing" Robots

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Protect Against Invaders by SPAM-Proofing Your Website - How to Use the JavaScript Method


    (Page 2 of 4 )

    The following are examples of JavaScript that you can use to make your email address appear different in the code but still perform the same function as if it were regularly coded in HTML (ie: mailto:support@example.com).  To use these examples, just copy and paste the code into your HTML document and replace the required field(s) with your email address.

    1. Basic Email Script

    <script language=JavaScript>
    <!--
    document.write("support" + "@" + "example.com");
    //-->
    </script>

    Result:  support@example.com

    2. Basic Mailto: Email Script with Link Text

    <script language=JavaScript>
    <!--
    var username = "support";
    var hostname = "example.com";
    var linktext = username + "@" + hostname;
    document.write("<a href=" + "mail" + "to:" + username +
    "@" + hostname + ">" + linktext + "</a>");
    //-->
    </script>

    Result: support@example.com

    3. Inline JavaScript

    <a href="#" onclick="JavaScript:window.location='mailto:'+'support'+'@'+'example'+'.com'">Link Text</a>

    Result: Link Text

    The three scripts options above should give you some flexibility in how you choose to use these on your website.  Remember to insert your own email address into the fields where the support@example.com email address is located.

    Problems Associated with JavaScript

    There doesn't appear to be many problems with using the above scripts in the HTML code of your documents.  The biggest issue may be incorrectly coding the scripts or issues with older browsers that do not support JavaScript. One last issue that may see its day in history is email harvester programmers being able to find email addresses among the JavaScript code.  While this may be a reality sooner than we expect, for the most part JavaScript should be SPAM-proof enough to block most malicious SPAM bots.

    More Search Engine Spiders Articles
    More By Benjamin Pfeiffer


     

    SEARCH ENGINE SPIDERS ARTICLES

    - The Yahoo SLURP Crawler
    - How Search Engines Work (and Sometimes Don’t)
    - Spider Guts
    - Score One for the Spiders?
    - Protect Against Invaders by SPAM-Proofing Yo...
    - ROBOTS.TXT Primer
    - Designing Websites For Humans In A World Of...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek