Results 1 to 7 of 7

Thread: Control internet connexion

  1. #1
    Join Date
    Oct 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Control internet connexion

    Hi everyone,
    I am trying to develop an application (C++/Qt preferably for Multi-platform) that allows to control and filter the data stream entering and leaving the network (mainly internet), and to restrict the access of certain URL to be reached in the browser,

    Is that possible with Qt?? If not are there libraries that can do this??
    Or is there any APIs that I can use to help control the connection on the computer?
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Control internet connexion

    Quote Originally Posted by badboy0017 View Post
    Is that possible with Qt??
    Not with just Qt. You have to hook into the system's network stack.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Control internet connexion

    Quote Originally Posted by badboy0017 View Post
    to restrict the access of certain URL to be reached in the browser,
    This bit seems like a job for an HTTP proxy which you could do in Qt if you don't mind reinventing a wheel (See Squid and Squid Guard for examples). Easily circumvented too.

    Filtering and blocking by deep inspection of packet entering/leaving the machine is a more complex affair and inherently platform specific. On Linux you have some tools in the form of NetFilter modules. How you do it on Windows or Mac OSX I'll leave to someone else. Suffice to say this is not Qt territory.

  4. #4
    Join Date
    Oct 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Control internet connexion

    If a want to have a proxy server, the browser must use proxy configuration, or a user can just disable the proxy on the browser and escape to my control!!
    Otherwise, how can I create proxy server using Qt??

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Control internet connexion

    If you want to be relatively sure all connections pass through a specific proxy, it is the network router that should be configured to pass all http traffic through the proxy.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Oct 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Control internet connexion

    Any idea how antivirus do to block access to a list of web sites?? (like Kaspersky has a parental control in it)??
    There is a documentation that explain this??

  7. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Control internet connexion

    They either:
    • force a proxy setting into the common browsers/email programs so they can intercept communication that way, or
    • hook the Windows network stack in way that allows them to achieve the filtering.


    http://stackoverflow.com/questions/6...network-events

Similar Threads

  1. Pb connexion distant oracle database using QOCI
    By mourad in forum Qt Programming
    Replies: 0
    Last Post: 16th December 2010, 11:52
  2. QFtp : Connexion to false IP doesn't expirate
    By Arthurd in forum Qt Programming
    Replies: 2
    Last Post: 12th September 2010, 02:31
  3. Replies: 0
    Last Post: 16th December 2009, 10:45
  4. Is internet connected
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 24th November 2009, 22:22
  5. 3d Connexion Space Navigator
    By dvmorris in forum Qt Programming
    Replies: 1
    Last Post: 13th April 2007, 11:56

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.