PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 755 All time: 4,456 This week: 191Up
Version License PHP version Categories
protected-page 1.0Freeware5.0HTTP, PHP 5, Security


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 is available for providing paid consulting. Contact Xavier Pérez .
Classes: 9 packages by
Country: Spain Spain
Age: ???
All time rank: 132727 in Spain Spain
Week rank: 405 Up18 in Spain Spain Up
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  
This week:0
All time:4,456
This week:191Up
User Comments (1)
getProtectedPageAccesUser function not necessary to use out t...
9 years ago (Andoitz Jordan Marmolejo)