PHP Classes
elePHPant
Icontem

PHP Secret URL Path: Authorize access based on user click sequence

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog (2)    
Last Updated Ratings Unique User Downloads Download Rankings
2016-11-01 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 422 This week: 28All time: 6,076 This week: 39Up
Version License PHP version Categories
secret-path 1.1GNU General Publi...5PHP 5, User Management, Security
Description Author

This class can authorize access based on user click sequence.

It takes an array of values and checks if the user has clicked on links with parameter values that follow the sequence of values in the array.

The class object is stored in a session variable, so in the next access the class can check if the correct link was clicked passing the next value in the array.

Innovation Award
PHP Programming Innovation award winner
November 2016
Winner


Prize: One downloadable copy of PhpED Professional
Passwords are the most common way to authenticate users. However, if somebody sees a user typing a password, the password may be stolen and the user account may be taken over.

A better approach is used by some bank ATMs. They show a bunch of buttons with lists of letter and number sequences on each button. The user has to use the right buttons by the correct sequence.

Since the buttons show different types of letter and number groups, even if somebody sees which buttons the user pressed, he will not know exactly what is the correct sequence.

This class provides means to implement a similar security system in PHP. It presents a list of links with values that the user needs to click, one after another by the correct sequence to be authenticated successfully.

Manuel Lemos
  Performance   Level  
Name: Dave Smith is available for providing paid consulting. Contact Dave Smith .
Classes: 32 packages by
Country: United States United States
Age: 51
All time rank: 26530 in United States United States
Week rank: 4 Up1 in United States United States Up
Innovation award
Innovation award
Nominee: 22x

Winner: 4x

Details
Class: secretPath
Version: 1.0 10/21/2016

Copyright 2015 Wagon Trader, All Rights Reserved


Description:

This class will track a user's clicks and allow authorized access if they followed a defined sequence.


Files:

secretpath.class.php - Main class

example.php - Simple application example

secret.php - Example file requiring authentication


Installation:

Upload files to a web accessible location on your server (eg. public_html)


Configuration:

No configuration needed.


Usage:

Refer to example.php file for a simple usage example.

Refer to secretpath.class.php file for instructions on using methods

When the class is instantiated you must provide the variable name which is being used as the URL key in the key/value pair and an array of values in the correct sequence for authorization.

Changelog

1.1.1

Added method to test users path
Added strongReset param to validatePath method

1.1

Changed class construct to support random generation
Added random path and tracking generation methods
Added method to get tracking variable
Added method to get secret path

1.0

Initial release
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Usage Example
Accessible without login Plain text file license.txt Lic. License
Accessible without login Plain text file manual.txt Doc. Documentation
Accessible without login Plain text file secret.php Example Authentication Example
Plain text file secretpath.class.php Class Main Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:422
This week:28
All time:6,076
This week:39Up
User Comments (1)