The following code captures a website for me identically.
<?php
$URL = "http://domain.com/embed.html";
$domain = file_get_contents($URL);
echo $domain;
?>
But what parameters or filters should I add to get only a certain part of a site and be able to remove or replace links and content, block the execution of scripts
*.
I also found an example used jQuery
to edit an external page via iframe
no access denied, etc.
But, I don't understand how it works specifically, what values should be used to remove or replace links and content to block execution of scripts
, can you explain?
$(document).ready(function(){
cleanit = setInterval ( "cleaning()", 500 );
});
function cleaning(){
if($('#frametest').contents().find('.selector').html() == "somthing"){
clearInterval(cleanit);
$('#selector').contents().find('.Link').html('ideate tech');
}
}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<iframe name="frametest" id="frametest" src="example.com" ></iframe>
I have observed in this question new attributes of
HTML5
, that can be done directly in aiframe
but that way I don't want it in certain parts everything freezes without showing me anything.