PHP Classes

CSS Protector: Display text using CSS to prevent harvesting

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 2,354 All time: 1,657 This week: 182Up
Version License Categories
cssprotector 1.0GNU General Publi...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: 65
All time rank: 352 in Germany Germany
Week rank: 91 Down5 in Germany Germany Down
Innovation award
Innovation award
Nominee: 3x

Screenshots  
  • screenshot.jpg
  • screenshot2.jpg
  • screenshot3.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,354
This week:0
All time:1,657
This week:182Up
 User Ratings  
 
 All time
Utility:65%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:80%StarStarStarStarStar
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1845