|
documents » articles
Mailto MasteredWhile working on the Jubilant Fields website, I un-intentionally ran across an excellent way to protect your "mailto:" e-mail address from spam bots. I had noticed an interesting stretch of script in Huddle Togther's source code for the icon that sends him an e-mail. The script ran somewhat like this: <script type="text/javascript">
//<![CDATA[ function enkoder(){var i,j,x,y,x= Several lines of code using letters and numbers while(x=eval(x));}enkoder(); //]]> </script> Searching Google on this script, I found an article at a website named Will Fastie that gave a good and helpful article about protecting your e-mail from spam. In this article, he linked to the Enkoder Form over at the Hivelogic website, which creates a chunk of code similar to the one at Huddle Together using the "enkoder" function. I find it an excellent and thorough way to create a mailto link on your site without having to deal with spam. So, now it is the default e-mail script for all the websites I create. After all, you can check out the code for my contact address on the sidebar and it is completely hidden from any sneaky bots! ...written @ March 10, 2007 |
|
| Copyright 2007 Goshen Web Design - a subsidiary of Jubilant Fields Farm | |