Results 1 to 2 of 2

Thread: VB 2010 - Detect what webpages are open in IE and Google Chrome.

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2012
    Posts
    3

    VB 2010 - Detect what webpages are open in IE and Google Chrome.

    Hello,

    I am building an application that is for a school who want another level of security. It will block certain webpages that can be set up by a user. It has to be done at the client end and work in both IE and Google Chrome. I need to know if code exists to determite what URL the webbrowser is at and also code to navigate to a new page. So for example I could write a function that could reroute the page e.g.

    Code:
    If Chrome.Url.Contains("www.youtube.com/") Then
        Chrome.Navigate("C:\blockpage.html")
    End If
    But obviously it would not be code as simple as that.

    Thanks

    - JamesAS

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: VB 2010 - Detect what webpages are open in IE and Google Chrome.

    Security, you say? Don\t you mean a way to stop the little darlings 'enjoying' themselves? This isn't in any way a coding issue. There are several ways of limiting sites that may be visited including Windows own parental control thingy. Additionally you can edit the Hosts file or route the DNS look up through a third party service such as DNSLookup which provides more specific blocking. Guides to all these methods are freely available via you local search engine.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width