Login   Register  
PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (7 months ago) RSS 2.0 feedNot enough user ratingsTotal: 692 All time: 4,342 This week: 1,542Up
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
Name: Xavier Pérez <contact>
Classes: 6 packages by
Country: Spain Spain
Age: ???
All time rank: 144129 in Spain Spain
Week rank: 560 Up20 in Spain Spain Up

  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:692All time:4,342
 This week:0This week:1,542Up
 User Comments (1)  
getProtectedPageAccesUser function not necessary to use out t...
7 months ago (Andoitz Jordan Marmolejo)