使用c#阻止网站和下载 [英] Block website and downloads with c#

查看:92
本文介绍了使用c#阻止网站和下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在C#中创建一个简单的应用程序,阻止访问某些网站(用户添加到应用程序数据库的网站。)此程序需要安装在服务器计算机上,并使所有客户端计算机都按照对该计划的法律。



我知道这是可能的,因为已经有这样的程序。我想出于教育原因建立这个。 :)我只需要有人指出我正确的方向。



1.我需要考虑什么?

2.什么我是否需要知道何时连接服务器和客户端才能服从服务器?

3.在谈论从服务器程序阻止网站时,我正在寻找的术语是什么? ?(如果有的话)



请不要用编写的代码发布或指导我整个页面,因为这会让我感到沮丧,因为我什么都没学到那么艰难的道路。代码的小片段是可以接受的,但对我来说,重点是从我犯的错误中学到一些东西。我只是不知道从哪里开始,我甚至不得不开始。哈哈



急切等待回复。 :)



问候,

Chris

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

推荐答案

使用代理服务器,所有互联网流量都可以通过它进行路由。请阅读维基百科上的介绍,并参阅此链接,了解可能的C#指南。



我希望这会有所帮助。
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.


这篇关于使用c#阻止网站和下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆