August 14th, 2013, 05:00 PM
Pop up log in box
I am completely new to PHP but want to create a pop up log in box when you visit my site, therefore it does not let you enter before you enter your credentials, can this be easily done?
Any help would be much appreciated!
August 14th, 2013, 05:34 PM
google 'php basic authentication'
Comments on this post
August 14th, 2013, 07:26 PM
Ok will do, Thanks!
Originally Posted by jimmyg999
August 14th, 2013, 08:03 PM
Do not use HTTP authentication except for unimportant stuff. It's extremely insecure, and it's not very user-friendly.
It does offer mild protection against ordinary visitors looking at your site, but it's completely and utterly unsuitable for holding off attackers.
If you need real protection, use a custom login form over HTTPS and hash the passwords with the bcrypt algorithm. PHP 5.5 comes with a new password API for that. If you don't have PHP 5.5 but at least PHP 5.3.7, there's an excellent "emulation" library.
Last edited by Jacques1; August 14th, 2013 at 08:06 PM.