PDA

View Full Version : Block Navigation on a login page


seanbracken
06-04-2005, 04:00 PM
Hi,
I'm setting up a WiFi hotspot and I want to direct users to a login page before they can surf the Internet. I need to remove all navigation from this page.

I can do this with popup windows using Javascript but I don't know how to do it for a normal html page. Any help will be very much appreciated.

_Aerospace_Eng_
06-04-2005, 05:47 PM
Can you use any server side language? Are any of the users going to have their own passwords or is it going to be a universal username and password?

seanbracken
06-04-2005, 06:08 PM
I can program in PHP. All users will have a unique password which will give then access for 24 hours. I'm not worried about creating the passwords etc. I just need to know how to block toolbars, status bars etc from appearing on the login page. After login the users will be directed to a page that allows full access to the Internet.

_Aerospace_Eng_
06-04-2005, 06:12 PM
Oh okay, well this isn't possible without using another page to open up a popup. If the popup is opened automatically it might be blocked by a popup blocker. A link would have to open the popup for the effect you want. You could I guess have like a click here to enter the wifi zone, then that popups a page with no scrollbars or menubars or anything. Some browsers will have the ability to stop scripts from doing that. There are always ways around types of things. If javascript was disabled it wouldn't work. These computers are they just going to be like in a shop you own or will users be able to access the wifi area from anywhere that has wifi?

seanbracken
06-04-2005, 06:23 PM
The firmware in the access point allows me to route users to a web page. This page will ask for a password and check in a MySQL database for validation. However if users can navigate on the login page there is no point in validating them.

_Aerospace_Eng_
06-04-2005, 06:45 PM
This is why I asked where will the computers be located, will be computers that the users will bring in themselves or do you have a set number of computers in the place that they will use?

seanbracken
06-05-2005, 04:00 AM
The computers will be brought into the site by the users. They will get access to the Internet via a WiFi access point. We can force them to a login page that shows our terms of service, warns against spamming and asks for a user name and password that they get at the reception desk. The AP takes care of the routing to make this happen. However it only allows me to enter an address or IP address into the firmware so I can't make it a popup page. So what I need to do is create an automatic popup page on the server that validates the users. Otherwise they will be able to surf without being verified or registered. We don't want to provide facilities that will let people abuse the service by sending out millions of e-mails etc.
Sorry if I'm not explaining this well. I havn't been to bed for 2 days trying to find a solution.