Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to encrypt email addresses using JQuery

Tags:

jquery

email

Is there a way to use JQuery to cloak or encrypt email addresses on an HTML page without changing the syntax in the href?

like image 239
mmcglynn Avatar asked Sep 05 '08 18:09

mmcglynn


2 Answers

Well, just as a comment, you probably want the source to have a cloaked email address and then use jQuery to fix or construct the link to have the correct address... because bots will be looking at the source, not the results of running your javascript ;-)

like image 137
Mike Stone Avatar answered Sep 30 '22 20:09

Mike Stone


Using JQuery may not be the route you want to take since this would be on the client side... Is there a reason you're not encrypting on server side?

like image 20
Ryan Lanciaux Avatar answered Sep 30 '22 19:09

Ryan Lanciaux