PHP Classes

Luta Spam: Encode e-mail addresses to prevent harvesting

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 325 All time: 7,193 This week: 673Up
Version License PHP version Categories
lutaspam 1.2GNU General Publi...4.0Text processing, Security


This class can be used to encode e-mail addresses to make it more difficult to grab by e-mail harvesting robots.

It can take an e-mail address and replace some of its characters to make it difficult to recognize by robots by replacing @ and . characters by respective images.

The class can also do the opposite, i.e. replace the images and decode the e-mail address by @ and . characters respectively.

Since v1.1 checks for valid email address and also encode the username part.

Since v1.2 it replaces the @ and . for images and also checks DNS records to Internet host name of the given email

Picture of David Ferreira
Name: David Ferreira <contact>
Classes: 4 packages by
Country: Portugal Portugal
Age: 43
All time rank: 185626 in Portugal Portugal
Week rank: 301 Up4 in Portugal Portugal Up

  Files folder image Files  
File Role Description
Image file at.jpg Icon Image needed
Image file dot.jpg Icon Image needed
Accessible without login Plain text file example.php Example Example script on how to use LutaSpam
Accessible without login Plain text file lutaspam.class.php Class The class itself

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,193
This week:673Up
User Comments (2)
David, I was already using your class for some time and it re...
15 years ago (Jack)
Nice class
15 years ago (ASantos7)