• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[OT] Anti-Spam solution for web pages.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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('&#64;');
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.

  • Follow-Ups:
    • Re: [OT] Anti-Spam solution for web pages.
      • From: Gnarlodious <email@hidden>
  • Prev by Date: Re: Category on an Entourage Contact
  • Next by Date: Re: [OT] Anti-Spam solution for web pages.
  • Previous by thread: Re: Category on an Entourage Contact
  • Next by thread: Re: [OT] Anti-Spam solution for web pages.
  • Index(es):
    • Date
    • Thread