3
Answers

How to block a Website using C#

chaithanya

chaithanya

15y
14.1k
1
Hai
 I am developing an C# application(not asp.net) in which I have to get the urls typed by the user in the browser and I have to compare the urls with a set of urls and decide whether to allow or to deny the user to navigate to the website.
I have tried with appending to C:\windows\system32\drivers\etc\hosts file but its not working.So Is there any way I can do this?How to block the sites by getting the urls.Can someone suggest me how to approach to the solution with some sites or code that can help me.

Thank You
Chaithu 
Answers (3)
0
SB Chatterjee
NA 8 0 16y
For 'Real World' applications - most of the value of the system arises from the mid-tier (with the business layer). This is where the business logic which provides the requirement solutions resides. My suggestion would be to obtain as much experience with this tier - a recommended book is Lhotka's Business Objects (this is NOT the 'Business Objects Enterprise/Crystal Reports' from SAP which sucks). Lhotka's approach is very unique and is well documented  - more details here: http://www.lhotka.net/

Post your experiences here..
Good Luck!

SBC
Microsoft MVP - Groove:Architecture