Oh well, I found this. Got what I was looking for.
http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal
Frage
Say I have a wifi hotspot which allows users access to my net connection (similar to a public hotspot).
Now, when a user connects to said hotspot, he must be redirected to a login page and if credentials are correct, then he is assigned a DHCP address and can access the internet.
I want to learn how such systems are implemented at public hotspots such as Starbucks, McDonalds, etc.
Can such a page be made with PHP or Java?
Lösung
Oh well, I found this. Got what I was looking for.
http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal