如何修复网站iframe的错误? [英] How to fix an error of website iframe?

查看:168
本文介绍了如何修复网站iframe的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我转到此网址时:(警告:建议使用某些广告拦截器



网站使用的是iframe


查看以下源代码: http://tugaflix.com/Episodio?E = 2310910& S2 /

您将看到没有提及或使用 iframe ......他们甚至使用两个不同的播放器界面所以你不能假设 tugaflix.com 在某些 https://oload.stream/embed/M4pSomdJWME > IFRAME 。相反,他们从某个名为 https://lemonade-fruit.fruithosted.net/的服务器访问MP4视频文件


When I go to this url : (warning: some Ad-blocker is recommended)

https://openload.co/embed/M4pSomdJWME/?c1_file=http://tugaflix.com/legendas/716bac991518958ad95df18200c906c3.srt&c1_label=Legenda

The web-page link loads fine, without errors.

However, when I try to load same page via iframe in my html code, an error appears:

My html code :

<html>
    <head>
    </head>
    <body>
        <iframe width="600" height="700" 
        src="https://openload.co/embed/M4pSomdJWME/?c1_file=http://tugaflix.com/legendas/716bac991518958ad95df18200c906c3.srt&c1_label=Legenda">
        </iframe>
    </body>
</html>

Below image: Error result within my iframe. How to fix such error?

解决方案

If you're willing to design/code your own player interface then one loading option is to use a <video> tag instead of via <iframe> tag...

<video width="640" height="480" controls crossorigin="anonymous">
<source src="https://oload.stream/stream/M4pSomdJWME~1508775093~213.205.0.0~IzmpIUe0?mime=true" type="video/mp4">
</video> 

I'm not going to tell you how to steal access any video by code, but some advice is:

1) You can see in the source code that a server 1508775191~213.205.0.0 is accessed for media files including subtitle VTT file). Study rest of source code. Consider why token is mentioned and why referrer is checked. What can you do pass and get same access?

2) By using your browser's Developer Tools (especially "network" and "console" tabs), you can find the related https://oload.stream/stream/ url for any future updates or alternate embeds.

PS:

"but, this tugaflix.com/Episodio?E=2310910&S2 website is using that iframe"

Look at source code of: http://tugaflix.com/Episodio?E=2310910&S2/
You will see that no iframe is mentioned or used... They are even using two different player interfaces so you cannot assume that tugaflix.com is loading this page https://oload.stream/embed/M4pSomdJWME within some iframe. They are instead accessing the MP4 video file from some server calledhttps://lemonade-fruit.fruithosted.net/

这篇关于如何修复网站iframe的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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