{PROJECT} ../../template/doc.en.ini {GRAFIK_LINKS} $home/gifs/li_phpcms.gif {LOGO_1} $home/gifs/cmslogo1.gif {LOGO_2} $home/gifs/cmslogo2.gif {MENU} 00.08.10.14 {TITEL} Built-in Functions {CONTENT}

- Mail2Crypt SPAM proofing your e-mail addresses

Mail2Crypt: SPAM proofing your e-mail addresses

TAG SYNTAX:
<!-- MAIL2CRYPT mail@domain.xyz[,link text][,ICON | custom image][,noscript link | PARANOID] -->

---------------

What is Mail2Crypt?
Mail2Crypt is a built-in function that encrypts and thus protects your e-mail addresses from SPAM bots.

What does Mail2Crypt do?
Mail2Crypt acts to ensure that e-mail addresses are kept from the prying eyes of unfriendly search engines (SPAM bots). SPAM bots are used by spammers to search the Internet for e-mail addresses they can sell, and/or send Unsolicited Commercial E-Mail (UCE) to.
Protecting you e-mail addresses from being harvested by SPAM bots now is as easy as putting them into a Mail2Crypt tag. The parser automatically encrypts them, and produces the code that is needed for your address to display in your visitors’ browser - with as well as without JavaScript!

How does Mail2Crypt work?
In order to render e-mail addresses unreadable by SPAM bots, Mail2Crypt employs a combination techniques. Their objective is to purge your pages from any text strings identifiable as e-mail addresses.

Simply put, Mail2Crypt turns each e-mail address into an encrypted string of digits which is then embedded into a JavaScript function call. When viewed in a browser the string is decrypted on the fly, and acts just like a conventional e-mail link.
The JavaScript code that is needed to display addresses is stored in an external .js file a reference to which is automatically placed inside the head section of your document.

In order to maintain accessibility of your contact information, in addition to the JavaScript described above, Mail2Crypt also creates a noscript section. The noscript section makes sure that user agents that do not support JavaScript may still display your e-mail address.
In the <noscript> section all the characters your e-mail address is made up of are converted into their ASCII equivalents. Since this by itself would not offer sufficient protection from SPAM bots, the @ is not treated as a character, but instead is replaced by a GIF file.
The noscript section does not contain an clickable mailto: link. In order to provide users with non-JavaScript enabled browsers a convenient way to contact you, you may turn the address displayed in the noscript section into a link that points, for example, to your contact form.

The Mail2Crypt Tag and Attributes
The Mail2Crypt tag uses the following format:
<!-- MAIL2CRYPT mail@domain.xyz[,link text][,ICON | custom image][,noscript link | PARANOID] -->

- mail@domain.xyz
  - e-mail address you want to protect
- link text (optional)
  - text you want to turn into e-mail link
- ICON (optional)
  - Add the "ICON" attribute if you want to display a small letter icon after (or in some cases instead of) the e-mail link
- custom image (optional)
  - instead of using the pre-defined icon, you may specify your own icon here
- noscript link (optional)
  - in the noscript section you may turn the e-mail address into a link that points e.g. to your contact form
- PARANOID (optional)
  - The "PARANOID" (or simply "p") attribute instructs Mail2Crypt not to create a noscript section

Mail2Crypt display options.
For each option, you see the JavaScript created format, followed by the corresponding noscript format.

- Simple e-mail link:
  - Mail2Crypt tag: <!-- MAIL2CRYPT info@phpcms.de -->
  - JavaScript:
  - <noscript> infophpcms.de
- Text w/ e-mail link:
  - Mail2Crypt tag: <!-- MAIL2CRYPT info@phpcms.de, Write us! -->
  - JavaScript:
  - <noscript> Write us! (infophpcms.de)
- Standard icon w/ e-mail link:
  - Mail2Crypt tag: <!-- MAIL2CRYPT info@phpcms.de,,icon -->
  - JavaScript:
  - <noscript> infophpcms.de
- Text, standard icon, e-mail link:
  - Mail2Crypt tag: <!-- MAIL2CRYPT info@phpcms.de, Write us!, icon -->
  - JavaScript:
  - <noscript> Write us! (infophpcms.de)
- Custom graphic w/ e-mail link:
  - Mail2Crypt tag: <!-- MAIL2CRYPT info@phpcms.de,,/parser/doc/mail_example.jpeg -->
  - JavaScript:
  - <noscript> infophpcms.de

How secure is Mail2Crypt?
Spammers are constantly increasing their efforts in order to get hold of those precious e-mail addresses of yours.
Because of this, there is no telling how effective Mail2Crypt will prove to be in fending off these efforts. During the first year Mail2Crypt has been used, we have had no reports of e-mail addresses that were harvested while being protected through Mail2Crypt.

Further Security Measures

- Don’t use e-mail - use smoke signs instead!
- If you want to, Mail2Crypt can remove the <noscript> section:
  <!-- MAIL2CRYPT info@phpcms.de,,,paranoid -->