PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-04-29 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 725 All time: 4,388 This week: 1,109Up
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  
Name: Xavier Pérez <contact>
Classes: 9 packages by
Country: Spain Spain
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
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

  Files folder image Files  /  public_html  
File Role Description
  Accessible without login Plain text file generateKeys.php Aux. Example generating auth links
  Accessible without login Plain text file index.php Example Public index example
  Plain text file rejected.html Data Reject example page

 Version Control Unique User Downloads Download Rankings  
 0%
Total:725
This week:0
All time:4,388
This week:1,109Up
User Comments (1)
getProtectedPageAccesUser function not necessary to use out t...
2 years ago (Andoitz Jordan Marmolejo)
77%StarStarStarStar