PHP Classes

Link Obfuscator: Obfuscate HTML links to prevent direct page access

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 2,484 This week: 2All time: 1,552 This week: 84Up
Version License Categories
linkobfuscator 1.0.0GNU General Publi...HTML, Security
Description 

Author

This class is meant to generate obfuscated HTML links in a way that is possible to detect whether the a page was accessed following a real link or went directly to a given page.

This way the class can be used to disallow users to freely navigate in a site without going through the intended pages, preventing direct access to pages eventually bookmarked during a previous access to the site.

Innovation Award
PHP Programming Innovation award nominee
August 2004
Number 5


Prize: One subscription to the PHP Magazine
Sometimes it is important for a site to not provide direct access to certain pages except you are a legitimate user.

This is the case for instance when you want to prevent that robots access certain pages and retrieve information in behalf of users that in reality did not access the site.

Leting the users or robots have direct access to pages can cause some type of loss to the site, like for instance not exposing the users to advertising on which the site depends.

This class provides a solution that consists on adding special tokens to links that can be verified on each page to determine whether the user accessed the page following legitimate links. With this verification, the site may refuse to serve the usual content.

Manuel Lemos
Picture of eikron morgauin
Name: eikron morgauin <contact>
Classes: 2 packages by
Country: Italy Italy
Age: 52
All time rank: 41113 in Italy Italy
Week rank: 103 Up4 in Italy Italy Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file linkObfuscator.php Class main class file
Accessible without login Plain text file test.php Example A simple test file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,484
This week:2
All time:1,552
This week:84Up
 User Ratings  
 
 All time
Utility:71%StarStarStarStar
Consistency:71%StarStarStarStar
Documentation:-
Examples:78%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2555