Skip to content

Commit b5fb767

Browse files
authored
Update README.md
1 parent d3f860d commit b5fb767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ A simple Page-Protection Verification page developed in [PHP](https://secure.php
77
## Tutorial
88
1. Firstly, [download](https://github.com/henry7720/Verification-Page/archive/master.zip) all of the files in any way you please.
99
2. Next, generate a BCRYPT hash for your password with [hashgenerator.php](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.
10-
3. Next, open up [verification.php](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.
11-
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`.
10+
3. Next, open up [verification.php](verification.php#L3) 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.
11+
If you are aware of any particular pages you'd like to password-protect, you may add them to the [`$whitelist` array](verification.php#L21) now. Make sure the page's path is a relative full path; with filename and extension, e.g `/foo/bar.php` or `/bar.php`.
1212
4. Next, open up [php-snippets.txt](php-snippets.md) and follow the particular instructions for using the PHP snippets to protect pages.
1313
5. Finally, create a new page with the PHP snippets, or use our [pre-made example](index.php) (as a template), and that page will be password-protected, making sure that the page has been added to the whitelist.
1414

0 commit comments

Comments
 (0)