Login   Register  
PHP Classes
elePHPant
Icontem

Mailto Encoder: Encode email address links with character entities

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-11-20 (10 years ago) RSS 2.0 feedStarStarStar 44%Total: 992 This week: 1All time: 3,414 This week: 1,493Up
Version License Categories  
cmailto_encoder 1.0GNU Lesser General Publ...HTML, Email, Text processing
Description Author  

This class creates a mailto: links for the given email address using equivalent character entities that replace the characters of the URLs in the link URL attributes.

This is meant to prevent that e-mail harvesting robots used by spammers to collect e-mail addresses find the e-mail addresses when they are looking for mailto: or @ text, without compromising the ability of the browsers to determine the link URLs correctly. For instance, @ becomes @ .

Despite the class does not provide a solution against e-mail harvesting robots that are able to decode URLs like this, the class still provides a solution with no disadvantages for the reader, as no Javascript is needed, the mailto: link is still usable, and it can still be copied from the Web pages to be pasted anywhere else.

The class also provide optional support for specifying the mailto: link text, CSS class for rendering the link, and additional parameters for predefining the the mailto: link subject and body text.

Picture of Konstantinos Dafalias
Name: Konstantinos Dafalias <contact>
Classes: 2 packages by
Country: Austria Austria
Age: 44
All time rank: 158914 in Austria Austria
Week rank: 1135 Up9 in Austria Austria Up

  Files folder image Files  
File Role Description
Plain text file mailto_encoder.php Class The class file
Accessible without login Plain text file mailto_encoder_test.php Example Sample script

 Version Control Unique User Downloads Download Rankings  
 0%Total:992All time:3,414
 This week:1This week:1,493Up
 User Ratings  
 
 All time
Utility:62%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:1946