热点wifi用户管理器 [英] hotspot wifi user manager

查看:88
本文介绍了热点wifi用户管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Am对一个应用程序进行编码,该应用程序将使用我的共享wifi网络将Internet用户重定向到一个网页,该网页将允许他们在允许访问Internet之前登录.
我阅读了一些有关Native wifi api的信息,但没有看到与拦截用户的连接,以确保他们在访问Internet之前先登录.

有人可以在这方面为我提供任何信息吗?

Am coding an application that will redirect Internet users using my shared wifi network to a webpage which will let them login before allowed o access the internet.

i read some info about Native wifi api, but dont see the connection with intercepting users to make sure they are logged in first before access the internet.

can anyone help me with any piece of information in this regards

推荐答案

您需要设置所谓的代理服务器.也就是说,所有用户都必须通过您的系统进行连接.您使用会话cookie或某种类似的机制来控制其访问.如果他们没有提供正确的cookie,则将他们定向到登录页面,如果他们的凭据很好,则会向他们发送一个合适的cookie.如果他们已经有了cookie,则将请求传递到Wild Wild Web.请注意,您的代理服务器必须(从逻辑上来说)位于WiFi接入点(路由器?)和Internet之间.我们的好朋友Google会告诉您所有有关设置代理服务器的知识(然后再说!).

彼得
You need to set up what is called a Proxy Server. That is, all users must connect THROUGH your system. You use session cookies or some similar mechanism to control their access. If they don''t present the right cookie, direct them to the login page, which sends them a suitable cookie if their credentials are good. If they already have the cookie, then pass the request on to the Wild Wild Web. Note that your proxy server must sit (logically, anyway) between your WiFi access point (router?) and the internet. Our good friend Google will tell you all you need to know (and then some!) about setting up a proxy server.

Peter


这篇关于热点wifi用户管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆