*
  
*
*
*
Login 
  Tuesday, September 07, 2010  * Muddled Hyperlink Control Register 
  Introduction 


The MuddledHyperlink control is intended to make life difficult for spammers who pilfer your site for all email addresses.  It replaces the Hyperlink control for ASP.NET. 


When a hyperlink is downloaded to the client, the actual link is modestly scrambled and is not descrambled until the user clicks on the link.  Each visit to the page, the control selects a random algorithm to use when scrambling the email address


Here's a demo below.

Email Phil
  Download and Installation 

A setup package can be downloaded from here for ASP.NET 1.1 or here for ASP.NET 2.0.  Execute the setup package as you would any other installation.  Answer the prompts during the installation.  Most users should be able to take the defaults.

After the control has been downloaded, you need to add it to your toolbox.  Go into Visual Studio and design a web form or user control.  Right-click in the control toolback and select “add/remove items”.  You should be able to checkthe obscure hyperlink control from the list (see picture below).  Press the OK button and the control should be added to your toolbox.

That's it, you're ready to go.

  Using the Muddled Hyperlink control 

The muddled hyperlink control is derived from System.Web.UI.WebControls.HyperLink class  It should function the exact same way, so consult the .NET documentation for more information.  The control, at render time, moves and scrambles the contents of the NavigateUrl property to a new attribute called onClick.  Some javascript is inserted to descramble the Url when the user clicks on the hyperlink.  I have not tested this with other browsers aside from Microsoft IE, but it should work fine in Javascript enabled browsers.


Good luck, if you encounter any problems or can give me feedback, email me using the link above.

  License Agreement 

The muddled hyperlink is freeware.  For you legal junkies, here's the license agreement:


Copyright (c) 2005 Denoncourt & Associates

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

 Copyright 2002-2004 DotNetNuke DenoncourtAssociates.com  Terms Of Use  Privacy Statement