I have a web browser project in C#, I am thinking such system; when user writes the url then clicks “go” button, my browser get content of written web site ( it shouldn’t visit that page, I mean it shouldn’t display anything), then I want look for a specific “keyword” for ex; “violence”, if there exists, I can navigate that browser to a local page that has a warning. Shortly, in C#, How can I get content of a web site before visiting?…
Sorry for my english,
Thanks in advance!
You have to use WebRequest and WebResponse to load a site:
example:
After that you can check the responseHtml for some Keywords… for example with RegEx.