如何检测用户是否正在使用 Lotus Notes 浏览器?

发布于 2024-10-03 02:13:00 字数 237 浏览 0 评论 0原文

我们为客户提供基于 Web 的平台,但通过 Lotus Notes 内部浏览器查看时,某些内容无法正常工作。尽管有各种关于不能在 Lotus 中打开的警告,用户仍然这样做。

因此,我需要一种可靠的方法来检测 Lotus 浏览器,从而阻止并显示适当的消息。

我无法从正在使用的用户代理中看到指定代理的任何特定证据,并且我被告知 Lotus 甚至可能会欺骗这一点。

有谁知道如何检测 Lotus Notes 浏览器?

We provide a web based platform to our clients and some content doesn't work properly when viewed through the Lotus Notes internal browser. Despite various warnings about not opening in Lotus, users are still doing it.

Therefore I need a reliable way to detect the Lotus browser and therefore block and display an appropriate message.

I can't see from the user agents in use any particular evidence of the agent specified and I have been advised Lotus may even spoof this.

Does anyone know how I can detect the Lotus Notes browser?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

野稚 2024-10-10 02:13:00

我刚刚尝试了 Notes 浏览器并得到了这个用户代理:Mozilla/4.0(兼容;Lotus-Notes/6.0;Windows-NT)

当然这是在 Notes 6.0.4 上,但我想内部 Notes 浏览器仍然会提供准确的用户-代理人。

但问题可能是,人们正在使用集成的 Internet Explorer 浏览器,该浏览器会显示为某些版本的 IE。

I just tried the Notes browser and got this User Agent: Mozilla/4.0 (compatible; Lotus-Notes/6.0; Windows-NT)

Granted this is on Notes 6.0.4, but I imagine the internal Notes browser would still provide an accurate user-agent.

The problem might be, though, that people are using the integrated Internet Explorer browser, which would show up as some version of IE.

我一向站在原地 2024-10-10 02:13:00

如果无法从用户代理字符串中检测到这一点,那么还有其他两个选项。

  1. 是否有任何其他标识标头专门从浏览器发送? (如果您遇到用户代理重写或代理问题,则可能不会。)

  2. 查看在浏览器中使用 javascript 检测此问题的方法。

对于基于 javascrpt 的检测,请尝试使用以下一项或多项:

navigator.appName; 
navigator.appVersion; 
navigator.appCodeName; 
navigator.platform; 

If it's not possible to detect this from the user-agent string then there are two other options.

  1. Are any other identifying headers being sent specifically from the browser? (Probably not if you've got issues with user-agent rewriting or, presumably, proxies.)

  2. Look at a way of detecting this in the browser with javascript.

For javascrpt based detection, try using one or more of:

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