Last questions on ask.SCRiPTMAFiA.ORG
CodeCanyon – Advanced PHP Protection
Category: Modules
- views: 7992
- date: 23 August 2010
- posted by: SharePlus

Advanced PHP Protection
Key Features:
* Works with any .php file.
* Completely customizable password page.
* 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 customsessionkeys() 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->credentials('admin', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8');
// set the hash type
$pass->hashtype('sha1');
// set some custom session keys
$pass->customsessionkeys('name', 'pass');
// enable brute force protection, dissabled as default.
$pass->bruteforceprotect();
// set a custom page for the user to be sent to if the password it entered incorrectly.
$pass->redir('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.'
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.
I don’t want anyone to waste their money.
* Works with any .php file.
* Completely customizable password page.
* 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 customsessionkeys() 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->credentials('admin', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8');
// set the hash type
$pass->hashtype('sha1');
// set some custom session keys
$pass->customsessionkeys('name', 'pass');
// enable brute force protection, dissabled as default.
$pass->bruteforceprotect();
// set a custom page for the user to be sent to if the password it entered incorrectly.
$pass->redir('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.'
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.
I don’t want anyone to waste their money.
Demo:
http://codecanyon.net/item/advanced-php-protection/full_screen_preview/99823
DOWNLOAD FROM HOTFILE:
http://hotfile.com/dl/63901280/4a80c14/advanced-php-protection-source.zip.html
Please - don't forget to say - THANK YOU.
NO HOTFILE MIRRORS, PLEASE..! If you add HOTFILE MIRROR - IT WILL BE DELETED
Related news:
Information |
|||
![]() |
Members of GUESTS cannot leave comments. | ||

