none
Restricting Certain URL's RRS feed

  • Question

  • I would like to know how to design a code to be able to restrict URLS that are in a database. If someone could help me please.

    Wednesday, October 5, 2005 12:48 AM

Answers

  • I got this code from a different question I asked, but it seemed like it is what you are after

    "There is a Navigating event which is fired just before the WebBrowser navigates to a new document. Realize this event fires anytime the location of the document displayed in the WebBrowser is changed, whether it be by clicking a link or programmatically."

    Link : http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=101785
    Wednesday, October 5, 2005 5:21 AM

All replies

  • I got this code from a different question I asked, but it seemed like it is what you are after

    "There is a Navigating event which is fired just before the WebBrowser navigates to a new document. Realize this event fires anytime the location of the document displayed in the WebBrowser is changed, whether it be by clicking a link or programmatically."

    Link : http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=101785
    Wednesday, October 5, 2005 5:21 AM
  • There is a file in your C://Windows32 Folder.  After looking in all folders, you might find a file known as Hosts.  This file has some words written on it, and IP addresses.  You can retype the Ip Address on each seperate line.  Next to the Ip address, on the same line, you can type in the url you want to block. 

    I can help you add a lot of other stuff like adding a url that you want to block in that file through your application, without having to open the file.  I have other really good techniques on WebBrowser.  You can contact me on my email:  khalsa800@aol.com.  You can also visit my website and click on Technical support, and chat with me on yahoo! Messenger.  My website is, http://geocities.com/baller_allstar11/.
    Thursday, July 10, 2008 5:32 AM