阻止特定资源,而不是整个网站
我在 LAN 上有一个 slackware 服务器,带有 dnsmasq、dhcp 等。 还有一台连接到网络的 Windows Vista 计算机。
我想阻止来自整个 LAN 上的一个网站的特定文件,或者如果仅针对一台计算机不可能的话。
我以为可以用 dnsmasq 来完成,但是它阻止了整个网站。 我搜索了解决方案,但我只发现我可以在 system32 中的主机文件中添加“127.0.0.1 example.com”,这并没有太大帮助。
关于阻止一台计算机。浏览器是 Firefox,但我不想安装任何插件。
我将不胜感激任何有关我应该寻找什么的建议或为此编写的任何简单脚本。
I have a slackware server on LAN with dnsmasq, dhcp etc.
There is also one windows vista computer connected to the network.
I want to block a specific file from one website on the entire LAN or if it's not possible just for one computer.
I thought it could be done with dnsmasq, but it blocks the entire website.
I searched for solutions, but i only found that i can add "127.0.0.1 example.com" in host file somewere in system32 which is not too helpful.
About blocking for one computer. The browser is Firefox, but i don't want to install any addons.
I'd be grateful for any advice on what I should look for or any simple script to write for that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能想到的唯一方法是要求客户端通过代理服务器(例如支持阻止特定页面的能力的鱿鱼)访问互联网。
The only way I can think of doing this is to require that the clients access the Internet through a proxy server, such as squid, that supports the ability to block specific pages.