Here is a page with an example of the source:

http://cf4em.com/cf4em/index.cfm?mainaction=posts&forumid=2&threadid=63

The last post has my email address in the last sentence. This is what the
source of that mailto link looks like:

<a
href="&#109&#97&#105&#108&#116&#111&#58&#98&#111&#98&#98&#121&#64&#99&#102&#
52&#101&#109&#46&#99&#111&#109">&#98&#111&#98&#98&#121&#64&#99&#102&#52&#101
&#109&#46&#99&#111&#109</a>


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





-----Original Message-----
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: Friday, October 07, 2011 11:04 PM
To: cf-talk
Subject: RE: Hiding email address from spiders


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 (bo...@acoderslife.com) 
 * @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:some...@email.com')#">
#disguiseemail('some...@email.com')#</a>



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




-----Original Message-----
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk] 
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:348012
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to