网站只需可以从两个特定的 iPad 访问,而无需其他设备或 IP (PHP)

发布于 2024-10-02 15:16:07 字数 271 浏览 0 评论 0原文

我工作的公司有一个网站,供员工上下班打卡。

该网站只能通过我们的两台内部 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野却迷人 2024-10-09 15:16:07

您可以像大多数其他网站一样使用 cookie 和会话进行登录。这将允许您在浏览器关闭时保持登录状态。

You could do logins using cookies and sessions like most other sites. This would allow you to persist the login through browser shutdowns.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文