Web Hosting Talk







View Full Version : Need PROTECTED DIRECTORY embedded login on page instead of a popup box


robertk1
10-07-2008, 06:08 AM
We have a client who has a confidential directory of downloadable forms online. We put a password on the directory using the protectd directory feature in PLESK. Standard folder password.

The client prefers the pop-up box not be used, and wants the login and password to be inserted into the web site instead. I have never seen this, is it even possible?

I did several searches but could find nothing. Any help is appreciated!

Robert

JustinSmall
10-07-2008, 12:48 PM
It would probably be much easier to just build the most simple form of a login system (keep it secure though)

vibrokatana
10-07-2008, 01:44 PM
You could probably make a login form, then when they download (assuming they are authenticated) have the script send the file from a folder not accessible to the web.

01globalnet
10-07-2008, 02:14 PM
You can do this with .htaccess wrapper. Search google for this:
http://www.google.gr/search?q=.htaccess+wrapper&ie=utf-8&oe=utf-8&aq=t

footylad
10-07-2008, 02:45 PM
PHP Login would also be viable by creating a small database with username and password in hd5. Then have a Config.php and a index.php file working together to check the submited and allow acesss. I would personally go for that option as it should be more secure and make sure you don't embeed it into HTML as that can cause PHP - HTML Security issues.

Footylad

robertk1
10-08-2008, 05:51 AM
Thanks all --- excellent suggestions