Reputation: 1
Original:
<iframe src="www.youtube.com/embed/Abvkxjkvd"frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="695" height="400" ;w=695&h=400" allowfullscreen="true" ></iframe>
After
<iframe src="Fhkvhjnbhgo" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="695" height="400" ;w=695&h=400" allowfullscreen="true" ></iframe>
Is there a method to change the iframe like above?
Upvotes: 0
Views: 737
Reputation: 3797
There is no way to hide the source of an iframe, as it is publicly accessible by the browser.
The only way to go around this would be so set up some sort of "shell". Lets say you are trying to show google in an iframe:
<iframe src="http://google.com" />
But you don't want it to show google's address.
You could create a file name iframe.php:
echo file_get_contents('http://google.com');
And then show that file in your frame:
<iframe src="iframe.php" />
Note however that this can limit the expected functionality of the iframed website.
Upvotes: 1