How we can hidden"QtWebEngine Based Browser info" for websites that detecting browsers types...
Unsolved
General and Desktop
-
wrote on 26 Aug 2020, 18:01 last edited by stackprogramer
How we can hidden"QtWebEngine Based Browser info" for websites that detect type browsers...i want to when i used Qt QtWebEngine, other thinks my browser is chrome or firefox...is there any way?
for example this website detect my type browser.....https://www.whatismybrowser.com/
YOUR WEB BROWSER IS:
QtWebEngine Based Browser 5 on Windows 8
thanks in advance -
wrote on 27 Aug 2020, 03:30 last edited by Bonnie
You need to change the user agent string.
The c++ way is:QWebEngineProfile::defaultProfile()->setHttpUserAgent(userAgentString);
(If you use other profile than the default one, then set user agent of that profile.)
To get an user agent string for firefox, use firefox to open that https://www.whatismybrowser.com/
On the bottom of the page you'll see "Your web browser's user agent"
1/2