Login   Register  
PHP Classes
elePHPant
Icontem

CSS Protector: Display text using CSS to prevent harvesting

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-05-11 (9 years ago) RSS 2.0 feedStarStarStarStar 60%Total: 2,284 This week: 1All time: 1,582 This week: 1,545Up
Version License Categories  
cssprotector 1.0GNU General Public Lice...HTML, Security
Description Author  

This class can generate HTML tags to display text using CSS in such way that it prevents harvesting bots to determine what is written.

CSSProtector is based on an idea from Stu Nicholls about using CSS Font as a protection method against spam bots.

CSSProtector renames all the CSS classes used to protect the string everytime it is called, so the same string looks the same to the user but different to the bot everytime.

For Internet Explorer and Opera, CSSProtector only works on pages that use the STRICT DTD. For Mozilla it works well with STRICT and LOOSE DTD. Older browsers that do not support CSS will show nothing or a whole mess.

Innovation Award  
PHP Programming Innovation award nominee
May 2005
Number 5


Prize: One subscription to the PHP Magazine
One of the reasons why people get so much spam is because they left their e-mail addresses exposed in public Web site pages.

Over time many solutions have been implemented to make it difficult for robots that crawl pages in the search for e-mail addresses of spam victims.

Most solutions consist in ways that make it easy for human users to read the e-mail addresses, but very hard for robots to extract that information from pages.

This class implements an uncommonly astute solution that uses combinations of presentation styles with CSS to present the e-mail address in pages that is hard for most e-mail harvesting robots to extract the addresses.

Manuel Lemos
Picture of Peter Klauer
Name: Peter Klauer <contact>
Classes: 18 packages by
Country: Germany Germany
Age: 55
All time rank: 302 in Germany Germany
Week rank: 203 Down9 in Germany Germany Down
Innovation award
Innovation award
Nominee: 3x

Screenshots  
  • screenshot3.jpg
  • screenshot2.jpg
  • screenshot.jpg
  Files folder image Files  
File Role Description
Plain text file class_cssprotector.php Class Protect strings using CSS classes and divs
Accessible without login Plain text file example.php Example This is an example of how to use the class
Accessible without login Plain text file manual.txt Doc. About CSSProtector, how to use it, function list

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,284All time:1,582
 This week:1This week:1,545Up
 User Ratings  
 
 All time
Utility:68%StarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:87%StarStarStarStarStar
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:876