PHP Classes

How to Implement PHPInfo Test Page Protect with a Password Using the Package Protected PHPInfo: Show PHPInfo function output on a protected page

Recommend this page to a friend!
  Info   View files Documentation   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-10 (5 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 19 This week: 19All time: 11,240 This week: 2Up
Version License PHP version Categories
protectedphpinfo 1.0Custom (specified...5PHP 5, Language, Applications, Global
Description 

Author

This package can show PHPInfo function output on a protected page.

It provides a Web page script that presents a form to ask the user for a username and password.

The same script can check if the username and password match the credentials stored in a password file in the JSON format.

If the username and password are valid, the script shows the output of the PHP phpinfo function.

Picture of Faris AL-Otabi
  Performance   Level  
Name: Faris AL-Otabi <contact>
Classes: 15 packages by
Country: Saudi Arabia Saudi Arabia
Innovation award
Innovation award
Nominee: 4x

Recommendations

protect the phpinfo() command
add a password to run the phpinfo() function

Documentation

ProtectedPHPInfo

PHP Info with Password Protection

Features

  1. User management through JSON File
  2. Password Hashed for each user
  3. Secure Login Page

Default User

  1. Username: admin
  2. Password: admin

How to add a new user


{
  "users": [
    ...
    {
      "id": 2,
      "username": "admin",
      "password": password_hash("admin")
    }
  ]
}

Screenshot

image

License

MIT


  Files folder image Files  
File Role Description
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Plain text file info.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file users.json Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:19
This week:19
All time:11,240
This week:2Up