Hi,

I have a cafe with internet connection for customers.

And I have a PHP signin page.

I want to know how can I make the connection for internet enabled when the user signin with given PIN, otherwise he'll just get my signin screen just like the hotspots available in some cafes and hotels?

Is this possible using PHP?

Thanks,
Jassim

    Probably not just by using PHP without some other parts of the system, but you could use PHP to authorize/control some kind of gateway control ... for example a Squid proxy or perhaps even a firewall ...

      8 days later

      You would need your router to
      a) let people connect to WIFI without a password
      b) when they requested some website, your router must be smart enough to redirect anyone who has not authenticated to your PHP login script
      c) somehow inform your router than a user has authenticated and so that it will subsequently route requests properly.

      My understanding of how to accomplish all of this is fairly limited, but I believe it is possible if you were to replace your router's firmware with DD-WRT or something like that.

        Write a Reply...