PHPFront

Home > PHP > Email converter
The PHP website created by its users!



Email converter


Author
DescriptionMakes emails undetectable to email spiders.
RatingThis script has been rated 5/5 (1 votes)

PHP Code


<?
$email 
"john@doe.org";
$search = array('@''.');
$replace = array(" at "" dot ");
$result str_replace($search$replace$email);
?> 



Rate it: Print Print

Comments


Matt / 27 Aug 05

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.
Jack / 21 Jan 06

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..
Name
Website
Your comment