PHP Classes

Link Obfuscator: Obfuscate HTML links to prevent direct page access

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 2,485 This week: 1All time: 1,553 This week: 42Up
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
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (2)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,485
This week:1
All time:1,553
This week:42Up
 User Ratings  
 
 All time
Utility:71%StarStarStarStar
Consistency:71%StarStarStarStar
Documentation:-
Examples:78%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2625