检测匿名/隐身浏览 [英] Detect anonymous / incognito browsing

查看:152
本文介绍了检测匿名/隐身浏览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的默认浏览器允许匿名浏览。是否有可能当用户浏览在默认Android浏览器应用程序的一个微服标签来检测? (我在URL中的用户访问不感兴趣)

The Android default browser allows anonymous browsing. Is it possible to detect when the user is browsing in an incognito tab of the default Android browser application? (I have no interest in the url the user is visiting)

我使用的是内容观察对象收到关于用户浏览历史记录的更新。当用户打开一个隐身标签页,我没有收到任何更新,因为任何人期望的那样。我想知道是我怎么能知道用户正在浏览匿名。

I am using a Content Observer object to receive updates on the user browsing history. When the user opens an Incognito tab, I don't receive any update, as anyone would expect. What I was wondering is how could I know that the user is browsing anonymously.

我可以知道浏览器应用程序是在前台,我知道,没有历史的网址被注册,但我可以检索哪些其他的信息,以确保用户浏览在隐身标签?

I can know that the Browser app is on foreground, and I know that no history url is being registered, but what other information could I retrieve to be sure the user is browsing in an incognito tab?

更新

大家好,感谢您的意见。我确切地知道我问。我知道隐身模式的点,只有默认的浏览器使用的ContentProvider 来记录浏览历史记录。

Guys, thank you for your comments. I know exactly what I am asking. I know the point of incognito mode and that only the default Browser uses the ContentProvider for logging the browsing history.

我写一个家长控制的应用程序,所以我会非常AP preciate如果有人能回答这个问题。在先进的感谢。

I am writing a parental control app, so I would very much appreciate if anyone could answer the question. Thanks in advanced.

推荐答案

可能不是理想的解决方案,但你可以用键盘。

Might not be the ideal solution but you can go with the keyboard.

如果您知道该浏览器应用程序是在前台,没有历史URL进行注册,但键被pressed,事情正在发生。

If you know that the Browser app is on foreground, no history url is being registered, but keys are being pressed, something is happening.

也许你可以编写自己的keyobard的应用程序,并与家长控制出货。如果这不是一个选项:

Maybe you can write your own keyobard app, and ship it with your parental control. If that's not an option:

<一个href="http://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-keyboard-in-android">How检测是否软键盘是在屏幕

<一个href="http://stackoverflow.com/questions/14217535/android-softkeyboard-onkeydown-up-not-detecting-alternative-keys">Detecting如果键是pressed

修改

去了,您也可以<一href="http://stackoverflow.com/questions/5327985/find-how-much-network-traffic-other-android-apps-generate">check网络流量。如果浏览器是否有与在键盘上,但没有流量比你可能是安全的!

Going for that you can also check the network traffic. If the browser is there with the keyboard on, but there is no traffic than you are probably safe!

这篇关于检测匿名/隐身浏览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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