如何设计一个简单的代理服务器来读取配置文件并阻止某些网站?
大家好,我正在考虑为我的公寓建立一个简单的代理服务器,这样我们的室友就不会花费大量时间下载东西,在 YouTube 上流媒体并占用所有带宽。我如何构建一个简单的代理服务器,以便我可以限制其他室友访问某些特定网站。 我正在考虑使用某种可配置文件并列出将受到限制的站点的名称。 问题是,我从哪里开始?谁能帮我生成一个算法来构建一个简单的服务器?
谢谢
Hi i was thinking to build simple proxy server for my flat so that our flatmates are not spending hours and hours downloading stuff, streaming on youtube and eating all the bandwidth. How am i going to build a simple proxy server so that i can restrict other flatmates going on some particular sites.
I was thinking to use some kind configurable file and list the name of the site that are going to be restricted.
the question is, where do i start form ? can anyone help me to generate an algorithm to build a simple server ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能最好使用 OpenDNS 并拥有 SQUID 代理服务器 配置在您与其他系统共享互联网的系统上,而不是实现您自己的解决方案,因为实现代理服务器是一项非常复杂的任务提供了相当程度的安全性。
You would probably be better off using OpenDNS and having SQUID Proxy Server configured on the system from which you are sharing internet to other systems, rather than implementing your own solution as it is a very complex task to implement a proxy server which provides a decent level of security.