Detect WebBrowser Control
javascript, user-agent, webbrowser-control
Solution
It seems that a specific error is raised when anything is assigned to `window.external`. So a check could be something like
const isWebBrowserControl = () => {
try {
window.external = window.external
return false
} catch (error) {
if (error.message === 'I don\'t remember this. Some specific error message.') {
return true
}
}
This is a potentially "destructive" check, though. But I really don't feel it would cause any problem.
Problem
Is there any way that I could tell if my site is being accessed by an instance of webbrowser control? Would it be possible to identify it by the user agent w/php? Or maybe some javascript hack? Or is it 100% identical to the regular IE from the server side?