学校的 lighttpd 代理服务器
我正在开发一个视频托管网站,供教师用来向学生分发教学截屏视频。我将伪流 flv 文件从 lighttpd 服务器发送到嵌入式 JW 播放器。一切进展顺利。我还允许我的老师将选定的 YouTube 内容嵌入到他们的播放列表中。目前,JW Player 仅使用 YouTube API 直接从 YouTube 调用视频。这也很有效。问题是,当孩子们尝试在学校观看 YouTube 视频时,学校的过滤器会阻止所有 YouTube 内容。我的老师要求我考虑使用我的 lighttph 服务器作为 youtube 的代理服务器来绕过过滤器。
我对代理的经验为零。我想我应该能够使用lighttpd中的代理模块使youtube.com在学校的过滤器中“看起来像”mydomain.com,我只是不知道从哪里开始。另一个复杂之处是,当播放器调用 YouTube 视频时,它会被重定向到许多其他 URL,例如 youtube.com 和其他一些域。这些也都需要由代理来处理。
任何人都可以提供任何见解或建议吗?我想做的事情合理吗?谁能提供任何 lighttpd 配置代码示例来帮助我启动?非常感谢!我很感激任何和所有的建议。
非常感谢您的建议!我想我可能需要澄清我正在尝试做什么。
用作代理的服务器位于学校网络之外,并且未经学校过滤。其域名已“批准”供学生使用。我可以将 youtube 下载到服务器并在那里进行流式传输。这确实有效,我们也这么做了。我想通过让服务器代理 youtube 并将其传送到学校的网络(标记为来自其自己批准的域)来节省服务器上的磁盘空间。由于我已经可以控制该域的使用,因此我将能够控制学生可以使用它访问的 YouTube 内容。这个想法是让教师能够选择性地授予学生绕过过滤器的访问权限。
这是许多学区的教师面临的巨大限制。 YouTube 有大量我们可以而且应该与孩子们一起使用的内容,但由于其中也存在“不适当”的内容,因此大多数学区只是过滤掉所有 YouTube 访问。
I am developing a video hosting site for use by teachers to distribute instructional screencast videos to their students. I http pseudo stream flv files from a lighttpd server to embedded JW Players. All is working well with that. I also allow my teacher to embed selected YouTube content in their playerlists. Right now the JW Player just calls the videos directly from YouTube using the YouTube API. That works well too. The issue is when kids try to watch YouTube videos at school, the school’s filter blocks all YouTube content. My teacher’s have asked me to look into using my lighttph server as a proxy server for youtube to get around the filter.
I have zero experience with proxies. I think I should be able to use the proxy module in lighttpd to make youtube.com “look like” mydomain.com to the school’s filter, I just don’t really know where to start. The other complication is that when the player calls a YouTube video, it get’s redirected to lots of other URLs some youtube.com and some other domains. Those all also need to be handled by the proxy.
Can anyone provide any insight or advise? Is what I am trying to do reasonable? Can anyone provide any lighttpd configuration code examples that might jump start me? Thanks very much! I appreciate any and all suggestions.
Thanks much for your advice! I think I may need to clarify what I am trying to do.
The server that would be used as the proxy is outside the school’s network and it is unfiltered by the school. Its domain is “approved” for students use. I can download youtube to the server and stream for there. That does work and we do it. I would like to save disk space on the server by having it proxy youtube and deliver it to the school’s network “labeled” as coming from its own approved domain. Since I can already control the use of that domain, I will be able to control the youtube content that students can access with it. The idea is to give teachers the ability to selectively grant student access around the filter.
This is a huge limitation that teachers in many school districts face. Youtube has a tremendous amount of content that we could and should be using with our kids, but because there is also “inappropriate” content there, most school districts simply filter out all youtube access.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最安全的解决方案是将 YouTube 视频下载到您的本地网络,然后从您自己的网络内部链接和流式传输它们。否则,您必须在学校的过滤器中允许您的代理服务器 youtube 访问,但这不会让您更接近您的目标,因为学校中的每个人都可以通过您的代理观看 youtube。
我从未使用 lighthttpd 作为代理,但 WinGate7 (beta3) 可以处理这个问题,让您设置白名单(针对您允许的 YouTube 视频网址)组等。这不是免费产品,但您可以获得学校和大学的折扣。
safest solution would be to download the youtube videos to your local network, and link&stream them from inside your own network. Otherwise you would have to allow your proxy server youtube access at your school’s filter, however this won't bring you closer to your goal because then everyone at school could just watch youtube via your proxy.
I never used lighthttpd as a proxy, but WinGate7 (beta3) could handle this, let's you set up whitelists (for your allowed youtube video url's) groups etc. This is not a free product, but you can get a discount for schools and universities.