Forum Moderators: open
My problem is that there is a back door to the script and all you have to do is to go directly to the websites address like "pagea.html" and it will let u in no problem
I would like to be able to use the users history to see if they have been redirected from the login site if not then they are directed back to the login site before the page loads.
However If i do that then every time the user with the correct password navigates inside the password protected area and when they go back to the main part of the protected area "pageA" they will be directed back to the login since they were not refered from the login site.
What can be used any ideas?
AsNutting
Not my field but I'm sure someone will come along and help you and point you in the right direction.
I think you need to put pagea in a separate folder and password protect it, possibly using .htaccess. Find out what server you are using and search for server .htaccess password protect.
It goes a bit beyond what you are after but there are some very easy to integrate starter scripts there.