55 comments found.
what I am trying to find out is – while you would have a same password for all pages on a site and how to be able to change this password for all pages – could I have this with ‘group’ – is that the purpose of the group – it is not clear to me what you write in $option[‘page_group_name’]=’YourGroupName’; All pages with the same group name need only one time login. So if page A have the group name ‘test’ and page B have the group name ‘demo’ the visitor of page A that is already logged in on page A also need to login at page B, even if both pages have the same password!
my site will possibly go up to 3.000 pages – how can the password be changed for all pages without having to go through all pages individually ?
1. Yes, that’s the way it works 2. Sure, the config with the password can be one file – so no problem, only one change for all pages!
my question was !!! if you a have a same password on all 3000 pages – 1. HOW CAN YOU change it 2. IS THERE A WAY without having to go MANUALLY INDIVIDUALLY through all pages
and my answer was: “Sure, the config with the password can be one file – so no problem, only one change for all pages!”
<?php include(‘adilbo_protect.php’); $options = array( ‘skin’ => 1, ); adilbo_protect(‘PASSWORD’); ?> AND ON THE PAGES <?php include(’../css/pas.php’); ?>
// file config.php
$password = 'your-secure-password'
and:
// file index.php (or the file you like to protect
require '/path_where_you _save_the config/config.php';
adilbo_protect($password);
But please remember, the script comes without support, and I can’t give PHP programming lessons – but that is the way it works, like you need it. Have a nice Easter Holiday.
God bless you and your family.
Hello! Any planned updates soon? I see your last update was back in 2023.
The script is still functional – do you need any new features?
I just sent you a private message.
Answering your private message here – that’s exactly the way it works!
Thank you. And also just to confirm. I can prevent access to content with password protection. I also want to make sure that the content itself, which can be accessed via public URL can also be password protected. In other words, the public URL cannot be shared as it would required a password to unlock. Is that exactly the way it works? Thanks again.
Exactly
Hello is it possible to save password, right now user need to enter password every time access the site, it would be great if there is an instant username field just to allow browsers to save data
You can edit the login form template from the template folder as you like – so yes
<a href="#" class="Autofill" onclick="autoFill(); return true;">Click to Autofill</a>
and using using java code:
<script type="text/javascript">
function autoFill() {
document.getElementById('password').value = "mypassword";
}
</script>
I‘m not sure if it make sense to write the password into the code of the page so everybody can see it – or I don’t unterstand what’s your challenge
no it doesn’t I am just trying to keep users logged in
Oh, now I understand, please try to set
$option['page_group_name']='YourGroupName';
All pages with the same group name need only one time login. So if page A have the group name ‘test’ and page B have the group name ‘demo’ the visitor of page A that is already logged in on page A also need to login at page B, even if both pages have the same password! Should contain only alphanumeric characters and can’t consist of digits only!
thank you so much
your welcome, hope that works for your
Hello, its possible implement into this also something like a payment via crypto ? i have boxcoin script already si i want to like put together IF IS possibility
If you are able to code some PHP it would surly be possible
Hi! Very interested in your script. Can you tell me if it is possible to pass a password embedded in a URL? For example: https://example.com/somepage.html?password=admin
I need it so that I can provide a group of users with a ready link, so that when they open it, they are already authorized, so that it would be transparent for them. For all others who do not have a ready URL should get to the authorization window.
Hello and thanks for getting in touch, it would be very easy to implement the following in the Template you want to use: https://www.adilbo.com/easyprotect/demo_single.php?access_pass=admin
and if you use
value="<?php echo $_GET['access_pass']; ?>"
into the input Field your user only need to hit the Enter Button to Login. That would be the easiest way to do what you want 
Hello, How can I remove the placeholder text in the password field? In the desktop view the password field is already populated with a value, in the mobile view the password field is empty. I want the password field to be empty for all viewpoints. Many thanks in advance!
Hello, nice to hear from you. You can edit the template you use. They’re all in the template folder. But please make sure that the prefilled value is not from the autofill function of your desktop browser
Hello! Can i use it this with static html files? I want to use it with publii cms.
Hi hi, I don’t know publii cms, but it’s a PHP Script, so it needs .php files to work. but the content of the file can for sure be pure html. Only the first line must be our PHP code 
Thank you.
is it possible to bypass an external request from another domain?
Yes, its very easy, checked it for you and if you buy send me an email and you will get an example how to do:
https://codecanyon.net/user/adilbo#contactokay, i just bought 
We just submit a new version with your new feature to envato, if its approved alle will get it and also the new hints in the docu – it would help if you give a nice review (in the download section of codecanyon) thanks
I am having trouble getting the function to work. I have this link: https://www.electricdonkeystudios.com/test/demo_test.php, admin
Works nice, your page contain content after the code:
include’adilbo_protect.php’; adilbo_protect(‘password’);
?
Thank you but when I put the PW in, the page then goes blank.
Well, does your page contain content after the needed PHP code?
I think so:
<?php ?> <!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Simple Test</title>
<meta name="robots" content="noindex, nofollow, noarchive">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body { background-color: white; font-family: monospace; }
</style>
</head>
Simple Test
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Well, ok, seems ok, could you provide me with ftp account data for the test folder so I can take a look
Yes. Just emailed it.
OK, no need to write here further, we use eMail instead
Hi, I bought your script but I can’t get it to work. I loaded the main folder, I copied the line of code in the index.php file of the site to protect but it doesn’t work.
please send an eMail with link to the protected page, password you set and ftp account data: https://codecanyon.net/user/adilbo#contact
I have some difficulties in setting it up… the PHP page I want to protect is a redirect to an HTML file… when I add the protection, after entering password it shows me the PHP code instead of the redirect, example, this is my INDEX.PHP //
<?php // index.php header(“Location: https://www.mywebsite.com/viewer/extra.html#https://arandompage.html", TRUE, 301); exit(); ?>
If I add: include’adilbo_protect.php’;adilbo_protect(‘password’);?>
When adding password it shows me the code of PHP, you may say protect the HTML, I can`t I need to protect the redirect for personal reason.
You need to include the code in the page that needs to be protected. Protecting a redirect page makes no sense because the target html page can be seen by everyone that don’t have the password
Thanks, I`ll try another method.
I can only say:
GREAT script and AWESOME author!! Perfectly – works with php and also html files.
And author helps directly and until it works like a charm.
100% buying success and 1200% recommended!
Thanks for your kind words, I would be happy if you use the review function in the download-section 
Thanks for buying and getting in touch, in’t not possible in the Moment. The file is pure HTML code and the template is not executed. It’s like a text file that would be read by the main script. If i’m allowed to ask, why do you need that?! Cheers 
Thanks for the reply and sorry for the delay in getting back to you! I need to put dynamic information, such as showing a certain contact link that changes with each access!
There is only the way to do that by JavaScript and AJAX – or you display the link in the PHP Page after the user is logged in?!
The user does not need to be logged in, before reaching this blocking page, he receives a link with a unique id in the url, through PHP I get this id from the url, and search the database for the contact link, in this way the user who visits the page will contact the person who can provide the access password for him!
I unterstand then you need to use the ID by AJAY and build the link
Thanks, if the template page accepts it, I’ll do it that way!
Let me know if it works for you – Cheers
I won’t implement it now, but thank you very much, your script is helping me a lot to avoid unwanted registrations on my site, only people with the password can register!
Your welcome 
hi i noticed you got sale how long will it be for?
Will end at 25.03.
ok well i wont have the funds will sale ends
Hi, is it possible to redirect after logout?
Fore sure, you could do with such a code BEFORE any HTML Output:
if (isset($_GET['logout'])) { header('Location: https://www.google.com'); }
Hi, thanks for your reply. I have added the code here:
<?php $options = array( ‘skin’ => 6, // or use 1-10 ‘md5’ => true, ‘block’ => array(‘127.0.0.1’), ‘attempts’ => 10, ‘timeout’ => 10, ‘bypass’ => array(‘255.255.255.255’), ‘maximum_validity_date’ => ‘31.12.2025’, ‘page_group_name’ => ‘YourGroupName’, ); include(‘easy-protect.php’); protect(‘81dc9bdb52d04dc20036dbd8313ed055’, $options); // PASSWORD = 1234
if (isset($_GET['logout'])) { header('Location: https://www.google.com'); }
?>
I think this is wrong….
Could you provide me with a mail to internmail at gmail dot com – will help
I need help.
thanks for buying and getting in touch, unzip your download, simple open the “documentation” folder and open the file “docu.html” in your Browser, there is a navigation on the left and you will find all you need. Maybe give it a try with any other browser
Cheers
PS: If you don like that, copy the file “adilbo_protect.php” and the folder “templates” and use the following code at the beginning of your page to protect your page:
<?php
include('adilbo_protect.php');
$options = array('skin' => 1, /* or use 1-10 */ );
protect('adminPa$$word', $options);
// here goes your Page
Thank you for this script it does what I wanted. However (yes there is always a ‘however’), i am using this to protect one page of a multi-page html website. That is working. The user logs into the main page, then if a retail distributor ‘clicks’ the link to take him/her to the distributor page. On arrival he is asked for the loging. All that works fine. If he goes back to the main page and then back to the distributor page he does not have to re-login. He should be logged out on leaving the distributor site. On another User Comment you replied “easy-protect.php?logout=true” would do the trick.
Sorry I am not a php person: Does that mean ”<?php include ‘easy-protect.php?logout=true’; protect(array(‘admin’,’demo’));?>
or does it go in the array? I use the array to change the page layout right?
does that mean: <?php include ‘easy-protect.php’; protect(array(‘admin’,’demo’));?>
Thanks for buying and getting in touch. You wrote „He should be logged out on leaving the distributor site“. Well, a page can’t know if a user go away from it. The only way is if the user Click this link: easy-protect.php?logout=true – there is technically no other way. That not a reason of my script, it’s the reason how the web works 
Thank you so much. I found your “RESET” in your code and could see how that works. I have simply added that to my page and it is fine. My only one remaining problem is how to select different page layouts. I thought I could just put skin = 1,2,3 or 4 as indicated in your documentation. That does not seem to do it. Never mind I will eventually figure it out. Thank you for the script. Great work and just what I wanted.
Yes it’s that easy:
<?php
include('easy-protect.php');
$options = array('skin' => 1, /* or use 1-10 */ );
protect('adminPa$$word', $options);
// here goes your Page
Hello, do you think it is possible to add a usage limit to a password? For example, that a password can only be used twice? Thank you for your valuable feedback.
Thank you for your interest in my product and for contacting me. My software can’t do this by default, but I’ll put it on the roadmap. If you need it absolutely, contact me by email at internmail at gmail dot com and we can talk about it.