如何设计一个简单的代理服务器来读取配置文件并阻止某些网站?

发布于 2024-11-30 06:14:59 字数 188 浏览 9 评论 0原文

大家好,我正在考虑为我的公寓建立一个简单的代理服务器,这样我们的室友就不会花费大量时间下载东西,在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你是年少的欢喜 2024-12-07 06:14:59

您可能最好使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文