I use the following jQuery code to hide my email (name.family@gmail.com
) on my website:
$(document).ready(function() {
var n = "name";
var f = "family";
var d = ".";
var t = "gmail";
var l = "com";
var r = 'mailto:' + n + d + f + '@' + t + d + l;
$('.hide-email').attr('href',r).html(r);
});
Does this actually stop spambots from collecting the email address? They also request my web page, load it and then analyze it for email addresses, right? And after the web page has been loaded, jQuery would produce the real email address. The only way to really protect my email is with a captcha, which is not so user-friendly...
Am I wrong?
UPDATE: The main question for me is - does the "hide email with JS or jQuery" method work at all?