PHP Easy Lock - Password protect PHP ScriptPHP Easy Lock - Password protect PHP Script
The best and easiest way to lock a PHP page with a password. Average rating of 5.0 based on 9 votesPHP Easy Lock - Password protect PHP Script
The best and easiest way to lock a PHP page with a password. Average rating of 5.015 Support questions or comments
Please login or create an account to post a question or comment.
-
Jan 23, 2021Your script is being resold here: https://code4u.link/category/php-js-css/php?page=1
-
Mar 10, 2019Hey, I have purchased your skyrpt as you have been in envato
How do I give you a screen shot or will you give me this script? I can not download it anymore. -
Apr 6, 2019ok i send
-
Apr 9, 2019artur99 AuthorI haven't received it yet. Did you send it?
-
May 30, 2018bashion PurchasedHi Artur,
I still have problems to get the remember me function to work after your update 1.5:
----Wrong token! Please activate/reset your cookies.----
On my page there is a refresh tag, because I need to get some new data from database.
Would it be possible, to get the example folder with remember-me function and logout?
Kind regards
Bianka
-
May 30, 2018artur99 AuthorHi and thanks for buying! Here is a demo of the code for what you need: https://pastebin.com/p0xgd1EN
Working live here: http://tests.artur99.net/el/page.php -
May 30, 2018bashion PurchasedHi,
many thanks for your swift reply. It happens on your page too.
login - logout- login again = Wrong token! Please activate/reset your cookies. -
May 30, 2018artur99 AuthorOh, you meant that appeared if you login immediately after logout. The script isn't expecting a login immediately after the logout. There's a token for security, stored in sessions, that is also deleted when logging out. If you go back to the initial page after logout, that error will be gone. I'll try to automate this process in the next update. Temporarily, you could turn off the csrf token by going to line 121 in easy-lock.php file and editing this:
if (!isset($_SESSION['csrftoken']) || !isset($_POST['csrftoken']) || $_SESSION['csrftoken'] != $_POST['csrftoken']){
To this:
if (false){
-
Mar 28, 2018ROP PurchasedHi Artur,
I’m having problems with the Remember_Me Function…
This is what I type:
<?php
include'tv-lock.php';
$options = array(
"sha512" => true,
"remember_me" => true
);
lock("here-i-use-the-sha512-version-of-the-password-of-course", 3, $options);
?>
The Remeber_Me function does not work. The browser always asks me for the password. This happens with Safari/Opera/Firefox/Chrome on macOS and Safari/Chrome on iOS.
What shall I do? Or am I doing something wrong?
Thanks in advance. - View 2 more replies
-
Mar 28, 2018artur99 AuthorYes. On the version I tested it was 67. And yes, it should be just after the comment, as you said. It should be all fine now. Thank you!
-
Mar 28, 2018ROP PurchasedPerfect! Thank you so much for the fast support.
And as this script only cost me about 5€ I’m not mad about that bug. And at the end it is good I found it, so you can update your script and make it better. Love being your beta tester. ;D Just kidding. -
Mar 28, 2018artur99 AuthorThank you!
-
Jan 27, 2018Charles4 PurchasedHi,
I have this:
<?php
include'easy-lock.php';
$options = array(
"skin" => 6,
);
lock("1234", 2, $options);
?>
But how do i add the remember me to this?
Thank you -
Jan 28, 2018Charles4 PurchasedFixed this now, but how do i use multiple sha512 passwords?
-
Jan 29, 2018artur99 AuthorHi! You'd need to turn on the sha512 option and set an array for the password options. Just like this: https://pastebin.com/mng15Wtb
-
Jan 1, 2018Charles4 PurchasedHi,
Is there any way to use this externally?
E.g:
<?php
include'https://doimain.com/locked/locked.php';
lock("Password", 7);
?>
<P>test</p>
? As trying to do this hasnt seemed to work -
Jan 2, 2018artur99 AuthorHi! I don't really get it. How should that work? Show the page from that link only after entering the password, or..?
-
Jan 2, 2018Charles4 PurchasedHi, im trying to use the script externally by hosting the main needed php script on one server but using the code to lock the page on a another
-
Jan 2, 2018artur99 AuthorUhm, that's not really possible with a php file. One way would be to save the easy-lock.php source code as a text file, then take it from the script-hosting server with a file get contents, then just run php's eval().
Just like:
<?php
$code = file_get_contents("http://hosting-server.com/easy-lock.txt" ;
eval($code);
lock(...);
?>
But that's not really safe.
-
Dec 29, 2017Charles4 PurchasedGetting this error?
[29-Dec-2017 11:51:33 Europe/London] PHP Warning: Invalid argument supplied for foreach() in /home/yvssecom/public_html/marketplace/assets/easy-lock.php on line 72
[29-Dec-2017 11:52:08 Europe/London] PHP Warning: Invalid argument supplied for foreach() in /home/yvssecom/public_html/marketplace/assets/easy-lock.php on line 72
[29-Dec-2017 11:52:29 Europe/London] PHP Warning: Invalid argument supplied for foreach() in /home/yvssecom/public_html/marketplace/assets/easy-lock.php on line 72 - View 2 more replies
-
Dec 29, 2017artur99 AuthorHi! Sorry for this, it was a bug in the last version. You can download the fixed file from here: https://expirebox.com/download/2af9ebb86359d6af6b5d8ca736f083cf.html I will delete it after download. I'll also upload the fixed version on the website as soon as possible.
-
Dec 29, 2017Charles4 PurchasedOkay thank you
-
Dec 29, 2017artur99 AuthorNo problem! Thanks for buying!
-
Dec 16, 2017Jan11 PurchasedHi, I need little help with remember me option. I set remember me to true, but every time i hit "back" button in chrome I get ERR_CACHE_MISS error and i must enter password again. What can I do about that? Thank you!
<?php
include 'easy-lock.php';
$options = array(
"password" => array('pass1', 'pass2',
"remember_me" => true,
);
lock("", 3, $options);
?> -
Dec 16, 2017artur99 AuthorHi!
I've been looking a bit over this, and made a little update over the code, you can download the file from here: https://ufile.io/g5qf5 I'll update it as a new version this week. It should solve the problem -
Dec 20, 2017artur99 AuthorJust made an update to the item. You can re-download it, and it shall take your case too.
-
Aug 29, 2017Henrique2 PurchasedHi, I just bought it and it always give me the same error "Wrong token! Please activate/reset your cookies.", any ideas?
-
Aug 29, 2017Henrique2 Purchasedhttp://mafaldapintoleite.com/workshop/
Pass: 123 -
Aug 30, 2017Henrique2 Purchasedsolved!!
-
Aug 30, 2017artur99 AuthorHi! Sorry for the late reply. I'm glad you did solve it.
-
May 7, 2017Corey2 PurchasedHi every one,
I was just wondering if i could get some help with installing this on MTDb - Ultimate Movie&TV Database.
Can't get this to work in this. Any help would be great.
Thanks - View 2 more replies
-
May 11, 2017artur99 AuthorSorry, I see it's been replaced by an emoticon. Here's a pastebin: https://pastebin.com/e5TEmTQy
-
May 14, 2017Corey2 Purchasedso would I add the sha512 for the password?
-
May 15, 2017artur99 AuthorYup, just like this: https://pastebin.com/aBkjnYQR
Information
Category | Scripts & Code / PHP Scripts / Security |
First release | 27 April 2015 |
Last update | 14 May 2018 |
Tags | responsive, easy, password, lock page, locker, easy lock |