I have put together a very basic password protection script. Its not very
secure , but it works ..well, sort of works š
It doesnt use a database, but a password file, i was going to htpasswd
protect somewhere...
My problem is ... what code can i enter on the hidden page, that will
prevent this from being accessed directly from a browser instead of
accessing through my login page?
I need to put some code on the page to not allow entry directly, but will
send the user back to login.php!
e.g. The login page is login.php . The page that is accessed once a valid
password is entered is secure_area.htm. What code can i put on
secure_area.htm that will send the user back to login.php if they try and
enter h**p://mydomain.com/secure_area.htm ??
Please forgive me if this is an ignorant question, i am a new newbie...just
looking for help!
Love PHP but could do with a hand here!
many thanks.
(plz excuse my bad english!)