Click here to Skip to main content
15,910,886 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to record all sites visited in c#.net
Posted
Comments
OriginalGriff 23-Jun-12 9:53am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.

I'm assuming you're talking about the sites visited by any web browser.

The only way to do that would be to implement a proxy server between your clients and the Internet. Any browser on the client side would be configured to go through the proxy to get to any site. The proxy can then log all of this stuff.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Jun-12 21:26pm    
Good point, and a clear solution, a 5.
--SA
Not too clear on your need or effort made.

IIS Logs would help in monitoring the websites visited. See here a similar question and discussion around it with sample: C# code for monitoring websites visited [^]
 
Share this answer
 
Comments
Dave Kreskowiak 23-Jun-12 10:06am    
That would log all the web sites VISITORS, not the sites a client visited.
Espen Harlinn 23-Jun-12 10:09am    
While not an exact solution, the discussion brought up a few alternatives worth investigating
brian 3 23-Jun-12 15:36pm    
to be more clear i have a c#.net project with a browser in it and iam able to visits websites on my program,so i just need a code that will log all the sites i visit on my program.
Dave Kreskowiak 23-Jun-12 16:04pm    
It would have been nice if you specified that in your original post so people could figure out exactly what you were doing instead of guessing at it.

Handle the Havigating or Navigated event of the WebBrowser control and in the event arguments, you'll find a Url parameter that will tell you where the request is going.

Read: http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.navigating.aspx
brian 3 23-Jun-12 16:12pm    
i have tried to use private void webBrowser1_Navigated(object sender,
WebBrowserNavigatedEventArgs e)
{
toolStripTextBox1.Text = webBrowser1.Url.ToString();
}
but it is still not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900