Giter VIP home page Giter VIP logo

verification-page's Introduction

Verification Page

A simple Page-Protection Verification page developed in PHP; used to protect webpages you'd like only people who have access to a key to see.

Requirements

  • PHP โ‰ฅ 5.4

Tutorial

  1. Firstly, download all of the files in any way you please.
  2. Next, generate a BCRYPT hash for your password with hashgenerator.php. If you are going to do this yourself, base64 encode the sha256 hash of your password string, and then BCRYPT the base64 encoded sha256 hash.
  3. Next, open up verification.php and replace the $hashedkey variable's value with your hashed password. Use single quotes for the string, so that there are no variable parsing issues. If you are aware of any particular pages you'd like to password-protect, you may add them to the $whitelist array now. Make sure the page's path is a relative full path; with filename and extension, e.g /foo/bar.php or /bar.php.
  4. Next, open up php-snippets.txt and follow the particular instructions for using the PHP snippets to protect pages.
  5. Finally, create a new page with the PHP snippets, or use our pre-made example (as a template), and that page will be password-protected, making sure that the page has been added to the whitelist.

Note: if you are confused, make sure to read the inline comments for further explanation.

License

MIT

verification-page's People

Contributors

henry7720 avatar bubka avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.