How can I protect email address?


#1

I’d like to make my mail address visible only for normal visitors.
But for robots it should be encrypted. That means unreadable for robots.
I guess I need to do it with Javascript function.
In Wordpress I’m using for protecting the email address this plugin: https://wordpress.org/plugins/email-address-encoder/

I’d be grateful for any help!


(Mark Hunte) #2

You could simply make the email address that is displayed an image an then have it’s on click run something like this.

	var adrr = ["email" ,"@","mymail","." ,"com"];
    var ma_il = ["mai","lto",":"] ;
 window.open(ma_il.join("") + adrr.join(""), '_self');

email.hype.zip (24.1 KB)

–Updated
Changed the code lightly…