Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How we can hidden"QtWebEngine Based Browser info" for websites that detecting browsers types...



  • 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



  • 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"


Log in to reply