Forum Moderators: open

Message Too Old, No Replies

Encrypt email addresses on the fly

         

lexa1999

7:25 pm on Jul 28, 2004 (gmt 0)

10+ Year Member



I am working on a site that is coded in cold fusion. Does anyone have any suggestions for how to encrypt email addresses dymanically? That is, I am pulling the email addresses out of a database.

So it look like this: Email address: #email#

I want to encrypt or encode the #email# output so that bots/spammers cannot harvest.

Thanks-

BlobFisk

1:35 pm on Jul 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This will be difficult as the address is coming from a DB and would require changing there and then. Can you do this at the back end or are you tied to a client side solution?

lexa1999

8:49 pm on Jul 29, 2004 (gmt 0)

10+ Year Member



Hey BlobFisk-

I can do it either on the backend or the front end.

Thanks.

Kneppi

9:56 am on Aug 1, 2004 (gmt 0)



If you have the email-adress 'adr@gokkesok.dk' (not-real) you can encrypt it as javascript:

<script language='JavaScript'>
<!--
var c='r',k='o',n='d',i='e',h='k',m='.',o='k',e='g',a='a',b='d',g='k',d='@',f='o',j='s',l='k';
document.write('<a href="mailto:'+a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+'">'+a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+'</a>');
//-->
</script>

Should be easy to make an algorithm that shuffles the 'var' letters.
If this is not good enough take a look at:
[jracademy.com...]

lexa1999

1:16 pm on Aug 1, 2004 (gmt 0)

10+ Year Member



Thank you Kneppi. I just have to figure out how to implement this with the database--