Key Features:
- Works with any .php file.
- Custom password and brute force warning pages.
- Well documented functions.
- Can easily be integrated into a database set up with multiple users.
- Single line mode, protect any page by simply including the file.
- Passwords can be set as either a md5 of sha1 hash or plain text if you prefer.
- Server side brute force protection, with options to change the maximum number of attempts and the block duration.
- No database or installation required.
- Email support provided.
- Light weight.
NOTE : The session is used to store the username and password so you dont have to login again when the page is reloaded. The variables $_SESSION[‘username’] and $_SESSION[‘password’] are used by default, if you need to use these in the script being protected you can set custom names using the custom_session_keys() function, see documentation for more information.
Example Useage:
Standard Mode
include('secure/security.class.inc.php'); $pass = new secure; // Set the username and password, in this case as a sha1 hash $pass->set_credentials('admin', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8'); // set the hash type $pass->set_hash_type('sha1'); // set some custom session keys $pass->custom_session_keys('name', 'pass'); // enable brute force protection, disabled as default. $pass->brute_force_protect(); // set a custom page for the user to be sent to if the password it entered incorrectly. $pass->redirect_on_fail('http://yourdomain.com/denied.html'); // finally apply protection to the page. $pass->protect(); echo 'protected content here.';
Single Line Mode
include('secure/security.class.inc.php'); echo 'protected content here.'
Documentation: http://jacekk.co.uk/code/page_protect/README.html
Example of the login page included
http://jacekk.co.uk/code/page_protect/example.php
Username: admin
Password: lemon
NOTE : this script will only work if you have PHP version greater than 5.1. I have had a few emails from people complaining of a blank page who were using PHP4 . You can check you version by using the following code.
<?php echo phpversion(); ?>
I don’t want anyone to waste their money.
Support
If there are any problems with this item, the best place to ask is in the forum as I check that at least once a day.
http://betterphp.co.uk/board/viewforum.php?f=29
[eltd_button size=”huge-full-width” type=”outline” text=”Download & Demo Links” custom_class=”#” icon_pack=”font_awesome” fa_icon=”” link=”” target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Demo = Advanced PHP Protection
[eltd_button size=”huge” type=”” text=”Full Live Demo” custom_class=”” icon_pack=”font_awesome” fa_icon=”fa-laptop” link=”https://codecanyon.net/item/advanced-php-protection/99823″ target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Kindly Note: We update new contents like WordPress Themes, Plugins, PHP Scripts everyday. But remember that you should never use this items in a commercial website. All the contents posted here for development & testing purpose only. We’re not responsible for any damage, use at your own RISK! We highly recommend to buy Advanced PHP Protection from the The Developer ( betterphp ) website. Thank you.
Download = Advanced PHP Protection-[Updated].zip