Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
I want to create a simple application in C# that would block access to certain websites(Which ever website the user adds to the application database.) This program needs to be installed on a server computer and have all the client computers act according to the "laws" of the program.

I know this is possible as there are already such programs. I want to build this for educational reasons. :) I just need someone to point me in the right direction.

1. What do I need to consider?
2. What do I need to know when it comes to connecting the server and the clients so that they obey the server?
3. What is the term I'm looking for when talking about blocking websites from a server program?(if any)

Please do not post or direct me to an entire page with the written code, as this frustrates me to death, because I'm learning nothing the hard way then. Small snippets of code are acceptable, but the point for me is to actually learn something from mistakes I make. I just don't know where to begin and what I even have to begin. haha

Anxiously awaiting a response. :)

Regards,
Chris
Posted
Comments
[no name] 27-Sep-13 10:04am    
The thing you are searching for is "how do I create a proxy server"
Christopher Smit 27-Sep-13 10:07am    
Smashing! :) Thank you. So this term will explain how a client computer communicates with a server computer and then act according to the laws set out in my program running on the server?
Sergey Alexandrovich Kryukov 27-Sep-13 10:06am    
Pure police enforcement measures never reach the goals. Any Web limitations should go to hell.
—SA
Christopher Smit 27-Sep-13 10:10am    
I just want to create it for educational purposes. I was talking to a friend the other day who is really frustrated with his employees browsing on social networks and worst of all downloading. Here in South-Africa, internet is expensive, so unnecessary downloads should be avoided. So I thought it interesting to see if I could actually learn about how to stop this. Programs like eScan Antivirus, has this type of system set up, but they do not disable downloads.
Sergey Alexandrovich Kryukov 27-Sep-13 10:11am    
I see...

I understand that, but than you should better, really, have a proxy server, provide Internet access trough it, and rather support traffic quota and measures to limit it: send warning about excess traffic use, limit access due to extreme overuse, and so on. It's possible that your ISP can provide such information. Restricting certain sites required support of huge database and is an eternal source of false positive, false negatives and related troubles, and yet it can never guarantee traffic control.

Doing it on per-computer basis is relatively easy, per-user is more difficult, as it would need authentication on the server. For example, this kind of access is typical for US hospitals, from what I can see...

—SA

1 solution

With a Proxy Server, all Internet Traffic can be routed through it. So read up introduction on wikipedia and see this link for possible C# guide.

I hope this helps.
 
Share this answer
 

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