EmailCloak
Votes: 11
Tags: snippet, avoid spamming, obfuscation
Submitted: Jul 18, 2006
Released: Jul 18, 2006
Downloads: 1184
License: Other
EmailCloak 0.2
Works with the following Version(s):
Allows email addresses to be cloaked from spambots.
Download
- repo-785.txt (1184 downloads)
Description
This is a snippet which allows email addresses to be cloaked or hidden from SPAM bots. Of course, this method is not foolproof, in fact: "You sit Joe Cracker down with the code for an hour or so and he'll correct his RegEx-capable parsing spider to decode even this."
I cannot see any other alternatives to this yet, and the code is very raw. If anyone can think of any improvements, I'm all open to suggestions. One feature I quite like is that you can set a page ID using $spage to make the link direct to a contact form in case Javascript is disabled.
Main credits go to Shawn K. Hall from this website address: http://tinyurl.com/9zouq
Instructions
Install the snippet.
To use this snippet, type this in your document content:
EmailCloak? &saddress=`youremail@address.com` &scaption=`Email Me`
OPTIONAL:
&stitle=`text` - to include a title attribute in your <a> tag.
&spage=`12` - page id of your contact form in case Javascript is not enabled.
You MUST include both an &saddress and &scaption to include the link on your page.

Please login to comment.