- Site Template
- WordPress Theme
- Blogging Theme
- CMS Theme
- Marketing Template
- eCommerce Theme
- Forum Theme
- Flash Template
- PSD Web Template
- .NET Script
- PHP Script
- HTML5 Code
- CSS Style
- Edge Animate Template
- Muse Template
- TypeEngine Theme
- Static Site Generator
- Sketch Template
CodeCanyon File Protect 3067617
PHP Script \ Form
Password \ Login \ Form \ Secure \ Sign \ Simple \ Users \ Restrict \ Easy \ Protected
PHP Script - File Protect 3067617 by christophdb @ CodeCanyon
PHP Script \ Form
Last Update: 4 October 12; Compatible Browsers: IE6, IE7, IE8, IE9, Firefox 2, Firefox 3, Firefox 4, Safari 4, Safari 5, Opera, Chrome; Software Version: PHP 5.x, PHP 5.0 - 5.2, PHP 5.3, MySQL 4.x, MySQL 5.x; High Resolution: No; Files Included: CSS, PHP.
Sometimes it is necessary to restrict the access to a file, to a complete folder, to a admin area or to specific file extensions like movie files. Of cause you can use a .htaccess file or create every time again a small login page but .htaccess is not very flexible and user friendly and programming everytime a new login page is very time consuming.
Instead you can use “FileProtect”. It is that simple to implement: change the settings in the login.php to your need, copy 4 lines of code and upload the files. Try it – you won’t never use another way of protecting your files.
The installation of “FileProtect” is very simple. Only 5 steps are necessary.
- Change the ‘Settings’ of the login.php to your need (FileProtect will run without any changes but all settings are also well documented)
- Replace the fileprotect_logo.png with your desired logo
- Copy the ‘4 magic lines of code’ from the login.php at the beginning of the file that should be protected (in most cases index.php)
- upload all files to the desired folder
- test it
The 4 magic lines of code are: (add this php code to all .php files that should be protected)
$fp = new FileProtect;
- “FileProtect” is simple and flexible
– it integrates perfectly at every time of your project. Existing files or struktures never have to be renamed or changed.
– only 4 lines of code to protect a file
– runs out of the box without any changes
- no database required – but ready to work with an sql database
- Username or Password could be defined in the settings or could be read from any sql database
- ready to deal with md5 encrypted password
- individual help text at the login page possible
- Automatic .htaccess creation to redirect from non-existing files and subfolders back to the login screen
- Possibility to protect specific file extensions from direct access
- German and English Translations available. Easy to extend with other languages due to standardized language files.
- resistant against BruteForce attacks
- check out the demo at http://www.bigtoe.de/demo/fileprotect
Version 1.1: I updated the documentation and included the possibility to protect specific file extension in the protected folder (and subfolders).
Please help me
If you are going to rate the script less than 5 stars, please tell me what I can do to make it 5 stars for you and I will fix it. I would love to hear your suggestions on how I could improve the script, leave me a comment or send me an email and your suggestion might make it in to a future version!
Vacation and Travel Management Tool; Translate PHP class.
Keywords: admin, easy, form, login, login form, oop, password, password protected, php, protect, restrict, secure, sign up, simple, users.
Android, Builder, Business, Clean, Corporate, Creative, Design, Email, Fashion, Gallery, Image, Iphone, Jquery, Landing, Magazine, Magento, Marketing, Minimal, Mobile, Modern, Multi, Multipurpose, Online, Parallax, Personal, Photography, Plugin, Portfolio, Product, Responsive, Retina, Simple, Slider, Social, Store, Template, Theme, Video, Woocommerce, Wordpress
Show all tags
Show all tags
- ThemeForest Topp Responsive Email Template & Mailchimp & Campaign Monitor & Stampready Builder 19322205
- ThemeForest GrandPack Email Template & Online Emailbuilder 2.1 19321191
- ThemeForest MAXON Multipurpose HTML Template 19310834
- ThemeForest PUNDIT Personal Portfolio Template 19288409
- ThemeForest Shopy Multipurpose Responsive Opencart Theme 19314078
- ThemeForest Lovely Cosmetics Responsive HTML Template 19257676
- ThemeForest Rx-Resume Responsive Resume Template 19254388
- ThemeForest The Future Multi-Purpose PSD Template 18777752
- ThemeForest Jollyque Onepage Portfolio HTML5 Website Template 19111725
- ThemeForest SuperFine Multi-Purpose Drupal Commerce Theme 19294770