V
V
Vitaly2017-10-30 15:06:58
JavaScript
Vitaly, 2017-10-30 15:06:58

How to know if the client's chrome browser is running in headless mode?

Good day everyone.
There is a headless mode in chrome, https://developers.google.com/web/updates/2017/04/...
How can I know that such a client has visited my site via js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Menshov, 2017-10-30
@vshvydky

It has its own User Agent
another way... since this is a console, there are no window APIs in it

if(window.chrome === 'undefined') {
 // headless detect!
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question