mailto.php
mailto.php reclaims HTML mailto: links from spammers' e-mail address harvesters. Using JavaScript, it creates a link to an e-mail address while keeping the actual address obfuscated.
mailto.php turns this:
<a href="mailto:user@example.com">user@example.com</a>
into
<script language="JavaScript"
type="text/javascript">eval(unescape('%76%61%72%20%61%64%64%72%20%3
d%20%27%25%37%35%25%37%33%25%36%35%25%37%32%25%34%30%25%36%35%25%37%38%25%36%31%
25%36%64%25%37%30%25%36%63%25%36%35%25%32%65%25%36%33%25%36%66%25%36%64%27%3b%76
%61%72%20%73%74%72%69%6e%67%20%3d%20%27%25%37%35%25%37%33%25%36%35%25%37%32%25%3
4%30%25%36%35%25%37%38%25%36%31%25%36%64%25%37%30%25%36%63%25%36%35%25%32%65%25%
36%33%25%36%66%25%36%64%27%3b%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c
%61%20%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%27%20%2b%20%75%6e%65%73%63%61%7
0%65%28%61%64%64%72%29%20%2b%20%27%22%3e%27%20%2b%20%75%6e%65%73%63%61%70%65%28%
73%74%72%69%6e%67%29%20%2b%20%27%3c%2f%61%3e%27%29%3b'));</script>
Which is pretty hard for e-mail gathering programs to decode.
mailto.php provides several easy-to-use functions as well as support for PHP's output buffering, enabling automagic encoding of mailto links.
mailto.php has been tested in all major browsers, including Mozilla, NS4, IE, Opera and Konqueror. The current version is 1.4.1, which was released on May 9, 2005.
Why no release in 3 years?
Because mailto.php does one thing - it protects your email address - and does it very well. The code is very small and very simple. There just aren't any bugs!
mailto.php is so stable that it has been used in a number of very well-known projects. For example, it is shipped as part of the Smarty template system for PHP, meaning that it is deployed on tens of thousands of servers around the world.
Download
- Source Code (.tar.gz format)