Suljettu

very simple work needed

hi i want to embed a video to a webpage in a iframe but the video is a stream and it has lots of anoying ads not very good i want to some how block the ads inside the ifram i dont know if you have a solution but one i have found i will show you but i cant get it working can you fix this

here is what i have found but cant get working it seems to be a filter for iframe content

i wamnt it made in a way i can copy it and use it again for difrent streams thanks

0

down vote If you are wanting to block something like POP up ads or something coming from a website you are showing in an IFRAME - it's fairly easy.

Make a [url removed, login to view] and [url removed, login to view] which your iframe points to. You can modify it to meet your needs such as the onload blah blah and etc. But as/is - it's been working fine for me for quite a while. Hope it helps.

Replace your standard IFRAME HTML with this:

<IFRAME SRC="[url removed, login to view]://[url removed, login to view]" WIDTH=1000 HEIGHT=500>

If you can see this, your browser doesn't

understand IFRAMES. However, we'll still

<A HREF="[url removed, login to view]">link</A>

you to the page.

</IFRAME>[url removed, login to view]

<?php

//Get the raw html.

$furl=trim($_GET["furl"]);

$raw = file_get_contents($furl);

$mydomain="[url removed, login to view]";

//Kill anoying popups.

$raw=str_replace("alert(","isNull(",$raw);

$raw=str_replace("[url removed, login to view]","isNull",$raw);

$raw=str_replace("prompt(","isNull(",$raw);

$raw=str_replace("Confirm: (","isNull(",$raw);

//Modify the javascript links so they go though a filter.

$raw=str_replace("script type=\"text/javascript\" src=\"","script type=\"text/javascript\" src=\"".$mydomain."[url removed, login to view]",$raw);

$raw=str_replace("script src=","script src=".$mydomain."[url removed, login to view]",$raw);

//Or kill js files

//$raw=str_replace(".js",".off",$raw);

//Put in a base domain tag so images, flash and css are certain to work.

$replacethis="<head>";

$replacestring="<head><base href='".$furl."/'>";

$raw=str_replace($replacethis,$replacestring,$raw);

//Echo the website html to the iframe.

echo $raw;

?>[url removed, login to view]

<?php

//Get the raw html.

$jurl=trim($_GET["jurl"]);

$raw = file_get_contents($jurl);

//Note, if trickyness like decode detected then display empty.

if(!preg_match("decode(", $raw)){

//Kill anoying popups.

$raw=str_replace("alert(","isNull(",$raw);

$raw=str_replace("[url removed, login to view]","isNull",$raw);

$raw=str_replace("prompt(","isNull(",$raw);

$raw=str_replace("Confirm: (","isNull(",$raw);

//Echo the website html to the iframe.

echo $raw;

}

?>

here is a link to this article [url removed, login to view]

and here is a link to what i want to add to the iframe [url removed, login to view]

Taidot: graafinen suunnittelu, HTML, PHP, verkkosivujen suunnittelu

Näytä lisää: website down for me fix, tv website script, get it work, echo design, blah blah your needs, simple work, simple tv, add a very simple, script head http, php pop inside page, stackoverflow tag, block popups, php head script, script src, iframe video, webpage copy webpage html, php file_get_contents 500, file_get_contents 500, embed window, css show block, popups block, file_get_contents http 500, decode stream, html embed javascript, script alert script

Tietoa työnantajasta:
( 25 arvostelua ) relleu, Spain

Projektin tunnus: #5512939

12 freelancers are bidding on average $42 for this job

michale21

A proposal has not yet been provided

63 $ USD 1 päivässä
(175 arvostelua)
7.1
powertech

A proposal has not yet been provided

44 $ USD 1 päivässä
(88 arvostelua)
6.7
diamondgate

Hello, PAY WHEN YOU ARE SATISFIED WITH MY WORK. Please download our portfolio (pdf file) at this link: [url removed, login to view] I have 4 years experience in website design, prestashop, magento, Open Lisää

50 $ USD 1 päivässä
(116 arvostelua)
6.5
theinspiredart

Hello Sir, I myself a website designer having a team of experienced developers who will work on your project to complete it as per your instruction. You can check my design portfolio on [url removed, login to view] [url removed, login to view] Lisää

54 $ USD 3 päivässä
(158 arvostelua)
6.1
deevan

Hello, we have carefully study the details and we are interested to cater your needs which you have mentioned in your description. We can accomplish your desires of your Project so we are sure that we will assure your Lisää

38 $ USD 2 päivässä
(34 arvostelua)
5.7
ssusoftwarelab

Please go through these links: Real estate sites: [url removed, login to view] (Responsive) [url removed, login to view] [url removed, login to view] [url removed, login to view] Wordpress Sites: [url removed, login to view](Respon Lisää

50 $ USD 5 päivässä
(11 arvostelua)
5.1
netmanivw

Hi, I am experienced website developer and can complete your requirements in efficient manner. You can view my samples and portfolio sites at [url removed, login to view] and [url removed, login to view] Lisää

64 $ USD 1 päivässä
(14 arvostelua)
4.2
opustechnology

Hello sir, We have good experience of Photoshop,Banner Design ,Flayer mail, .NET,Logo Design, PHP, HTML,HTML5,CSS,JavaScript,Mysql,JOOMLA,wordpress,Graphic Design,Website Design, Android, Sql Server please ch Lisää

30 $ USD 1 päivässä
(13 arvostelua)
4.2
webzersolution

Hi ! We have 5 yrs of experience in doing graphic designing, Logo designing, Presentation Design, Business Card Design, Icon designing, Brochure designing etc. In addition to that we are doing website development i Lisää

30 $ USD 1 päivässä
(12 arvostelua)
4.1
originalcontent1

Hello, I am web developer and can work on your I frame video steaming work and can do it in a day or 2 .. Thanks.

30 $ USD 2 päivässä
(6 arvostelua)
3.4
ahmedsliman

Welcome sir, I am a PHP Developer and i have a good experience in Javascript, JQuery and HTML, I can solve your problem.

30 $ USD 1 päivässä
(2 arvostelua)
2.3
BlinkBestTeam

Hello, Greetings...!!! I have seen your entire requirement and feel confident to give you effective result. We can have quick turnaround over this. Please initiate PM so we will discuss more stuff regarding Lisää

33 $ USD 1 päivässä
(2 arvostelua)
1.8
Elitesol2

Dear Sir Hi, Greetings of the day and thanks for sharing these details and allowing me to bid on this assignment. yes we have similar experience and can deliver u as u have mentioned in your requirements. we Lisää

55 $ USD 1 päivässä
(0 arvostelua)
0.0
Octaneinfosols

Hello Sir, Greetings..!! Octane Infosolution Pvt. Ltd. is present at your service.. WE READ ALL YOUR REQUIREMENTS AND FOUND THAT THERE IS A MATCH WITH YOUR REQUIREMENTS AND OUR SKILL SET. Hence we are Lisää

21 $ USD 2 päivässä
(0 arvostelua)
0.0
manusharma91

sir, I actually got the exact problem u r facing...u need to omit all d advertisement intruding the playback of your video....i can solve your problem at my fingertips....as I hav a lot of experience in solving suc Lisää

25 $ USD 1 päivässä
(0 arvostelua)
0.0