Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Whitelist & QNetworkAccessManager

    Qt WebKit
    2
    2
    1217
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tomuse last edited by

      Hi,

      I created a whitelist system for my browser, so I overwrote the function QNetworkReply * QNetworkAccessManager::createRequest to filter the urls.

      When a page is loaded by my browser, the url of this one is filtered using the function QNetworkReply * QNetworkAccessManager::createRequest, but the problem is that all other urls contained in this page (images, scripts, etc...) are also processed by the function QNetworkReply * QNetworkAccessManager::createRequest and so are filtered by my whitelist system.
      I only want to filter the page url but not the urls of the page elements.

      Any suggestions?

      Thanks in advance for your help.

      1 Reply Last reply Reply Quote 0
      • D
        developer last edited by

        one option is that you override the load function and then functions which loads or creates a new page and then filter the urls

        1 Reply Last reply Reply Quote 0
        • First post
          Last post