[OT] Anti-Spam solution for web pages.
[OT] Anti-Spam solution for web pages.
- Subject: [OT] Anti-Spam solution for web pages.
- From: Deivy Petrescu <email@hidden>
- Date: Wed, 15 Oct 2003 22:44:46 -0400
I've just seen a great solution to avoid placing anybody's email
address in a web page.
I know this is not the appropriate forum, but everybody is subjected
to the misery of spam, so... Here it is
For every instance of a link, say like,
write to <A HREF="
mailto:email@hidden">email@hidden</A>
one should change to the following code:
write to <SCRIPT LANGUAGE="javascript">
var first = 'ma';
var second = 'il';
var third = 'to:';
// example: webamster
var address = 'webmaster';
// example: dicas
var domain = 'dicas';
// example: com
var ext = 'com';
document.write('<a href="');
document.write(first+second+third);
document.write(address);
document.write('@');
document.write(domain);
document.write('.');
document.write(ext);
document.write('">');
document.write('webmaster at dicas dot com</a>');
</script>
It is so beautiful and simple that I wish I could say the solution is
mine... but I can not!!!
Hope this helps.
Regards
Deivy Petrescu
http://www.dicas.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.