|
Email converter
| Author | |
| Description | Makes emails undetectable to email spiders. |
| Rating | (1 votes) |
PHP Code
<?
$email = "john@doe.org";
$search = array('@', '.');
$replace = array(" at ", " dot ");
$result = str_replace($search, $replace, $email);
?>
Comments
This technique makes your email undetectable to *most* email spiders (harvesters).
A more secure alternative would be to use JS and unescape/escape the email address or use Flash to hold the email link that way pretty much only a human could gain access to the link.
What about emails that gmail allows such as..
php.front@gmail.com
it will return
php dot front at gmail dot com
rather than phpfront at gmail dot com..
|