I wrote this a while back for cF4em.

/************************************************************************/
/**
 * TextToAsc will convert a string to its ascii eqivalent. Perfect for
encrypting mailto links to hide them from anything other than a human.
 * 
 * @param str   String to convert
 * @author              Bobby Hartsfield ([email protected]) 
 * @version             1
 * @created             May 04, 2007
 */
function disguiseemail(str)
{
        var     tmpstr = "";
        
        for (i=1; i lte len(str); i=i+1)
        {
                tmpstr = tmpstr & "&##" & asc(mid(str, i, 1));
        }
        return tmpstr;
}
/************************************************************************/

you can wrap the entire href value with it (including the mailto: portion)
to mask the emails.

something like...

<a href="#disguiseemail('mailto:[email protected]')#">
#disguiseemail('[email protected]')#</a>



.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com




-----Original Message-----
From: Jenny Gavin-Wear [mailto:[email protected]] 
Sent: Friday, October 07, 2011 9:09 PM
To: cf-talk
Subject: Hiding email address from spiders


I have a client using a CMS I've built and they are using a lot of email
addresses in the content.

As I can search/replace content, I am wondering what is the best way to
"hide" them from the spiders?

tia,

Jenny Gavin-Wear
Fast Track Online
Tel: 01262 602013
http://www.fasttrackonline.co.uk/



--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 4302 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348011
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to