PHP Classes

PHP Protected Page: Block direct access to a page from external links

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
Not enough user ratingsTotal: 757 All time: 4,458 This week: 146Up
Version License PHP version Categories
protected-page 1.0Freeware5.0HTTP, PHP 5, Security
Description 

Author

This class can block direct access to a page from external links.

It verifies if an id and a token parameter are passed in the URL with a token that is generated from a secret key and a user identification.

If the token parameter is missing or invalid, the user is redirected to some other page.

Successful validation enables the user to access the page directly during a given period of time.

Picture of Xavier Pérez
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (5)  
File Role Description
Files folder imagepublic_html (3 files)
Accessible without login Plain text file INSTALL.txt Doc. Readme
Plain text file protectedPage.php Class Main protect class

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:757
This week:0
All time:4,458
This week:146Up
User Comments (1)
getProtectedPageAccesUser function not necessary to use out t...
10 years ago (Andoitz Jordan Marmolejo)
77%StarStarStarStar