网站只需可以从两个特定的 iPad 访问,而无需其他设备或 IP (PHP)
我工作的公司有一个网站,供员工上下班打卡。
该网站只能通过我们的两台内部 iPad 访问。我尝试对目录进行简单的.htaccess密码保护,但是每次关闭浏览器(这是经常发生的),我们都需要重新输入密码。
我考虑过限制对 iPad 的 IP 地址(也使用 .htaccess)的访问,但它们具有动态 IP,因此这也不起作用。
还有哪些其他解决方案?有没有办法让网站针对特定设备而不管 IP?有什么办法可以“捕获”iPad 动态 IP 的范围吗?
任何帮助将不胜感激!
The business I work for has a website for employees to clock in and out of their work shifts.
This website needs to be only accessible from our two in-house iPads. I tried doing a simple .htaccess password protection to the directory, but every time the browser is closed (which is often), we need to re-input the password.
I thought about limiting access to the iPads' IP addresses (also with .htaccess), but they have dynamic IP's so that doesn't work either.
What other solutions are there? Is there a way to make a website device-specific regardless of IP? A way to somehow "catch" the range of an iPad's dynamic IP's?
Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以像大多数其他网站一样使用 cookie 和会话进行登录。这将允许您在浏览器关闭时保持登录状态。
You could do logins using cookies and sessions like most other sites. This would allow you to persist the login through browser shutdowns.