How to prevent any app to load my website in webvi

2019-05-31 17:04发布

问题:

I've made a webapp but I don't want that any app load my website in webview.
How can I achieve this?
What can I put into javascript to check if the website is not into a regular browser?

To stop the execution in iframe I use to throw an Error so I just need a condition.

Thanks

PS)

Q: Why you don't just use iframe protection?
A: WebView != iframe

Q: Does the webview have a different User Agent? Or it could be edited too?
A: Yes, It can't be edited on iOS and then detected but it can be edited on android

So... Is the Android WebView a regular browser that can't be detected?