PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2004-08-17 (11 years ago) RSS 2.0 feedStarStarStar 48%Total: 2,394 All time: 1,558 This week: 909Up
Version License Categories
linkobfuscator 1.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: 44
All time rank: 39714 in Italy Italy
Week rank: 1356 Down58 in Italy Italy Down
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,394
This week:0
All time:1,558
This week:909Up
 User Ratings  
 
 All time
Utility:67%StarStarStarStar
Consistency:67%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:48%StarStarStar
Rank:1923