如何抑制youtube链接回youtube网站? [英] How do i suppress youtube link back to youtube site?

查看:121
本文介绍了如何抑制youtube链接回youtube网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在为我的孩子们制作一个儿童网络浏览器
我想使用其api将一些youtube视频频道添加到网页中
问题是单击时我需要隐藏视频中的链接回到YouTube网站,角落中的小链接
因为我不希望我的孩子能够以
的方式访问那里的所有其他内容 大多数评论包含不适当的语言

我已经读到它违反了他们的条款和条件,但是由于它不是用于商业产品,只是为了我的孩子们认为我可以做到.

任何人都知道该怎么做/

预先加油

hi all

i am making a childrens web browser for my kids
and i want to add some youtube video channels to a web page using their api

the problem is i need to surpress the link back to the youtube site from the video when clicked on and the little link in the corner
as i don''t want my kids to be able to access all the other content on there as
most of the comments contain language which isn''t suitable

i have read that it is against their terms and conditions but since it isn''t for a commercial product and just for my kids thought i could do it.

anyone know how to do this/

cheers in advance

推荐答案

我认为问题是您通过Youtube生成的嵌入链接获取的HTML.显示的是一个按钮,该按钮可导至发布原始视频的Youtube网页;并通过此页面,您的用户可以访问Youtube的其余内容.

您可以相对轻松地创建仅可从运行专用Web浏览器的计算机访问的本地代理HTTP服务器.该本地服务器可以重定向所有HTTP请求,并将原始内容传递到Web浏览器,但可以过滤某些项目.特别是,如果用户按下我上面提到的按钮,则本地服务器可以检测到该请求并将该请求重定向到发送原始请求的同一页面(这只是引用页面).您可以创建更高级的架构,并设计一些带有持久数据文件的小型重定向规则引擎,以使重定向成为规则驱动的.


本地HTTP服务器不必是单独的进程.它甚至可以与浏览器属于同一应用程序.它可以简化设计(虽然不太确定).这完全取决于您的需求.
[END EDIT]

我可以给您一些不寻常的建议吗?
信任您的孩子.如果您不信任他们,他们将早晚找到一种破坏您的保护的方法.如果这样做,他们可能会学会信任.相信您会为他们提供更多帮助,甚至可能最终将他们从真正的麻烦中救出来.

—SA
I think the problem is the HTML you get via embed link generated by Youtube. Is shows a button which leads to the Youtube Web page where original video is posted; and through this page your user can access the rest of Youtube contents.

You can relatively easily create a local proxy HTTP server accessible only from a machine running your specialized Web browser. This local server could redirect all the HTTP requests and deliver original content to the Web browser but filter some items. In particular, if the user presses the button I mentioned above, the local server could detect it and re-direct the request to the same page where original request was sent (which is simply a referrer page). You can create a more advances schema and devise some tiny redirection rule engine with persistent data file to make your re-directions rule-driven.


The local HTTP server does not have to be a separate process. It can be even the part of the same application as your browser. It may simplify the design (not quite sure though). It all depends on how you want it.
[END EDIT]

May I give you somewhat unusual advice?
Trust your children. If you don''t trust them, they will find a way to break your protection sooner or later. If you do, they might learn to trust you. Trusting you will help them much more and could eventually even save them from real troubles.

—SA


这篇关于如何抑制youtube链接回youtube网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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