Notifications
Clear all

How can I hide the url of the iframe


TinyWebGallery
Posts: 524
Admin
Topic starter
(@admin)
Administrator
Joined: 13 years ago

You can't. The browser needs the url to load the page and therefore it is in the source code. You see it in the source code and also in the network tab of all browser. 

What you can do is that your iframe can only be loaded in a parent you define! 

See: http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/change-links-targets#e11

If you open the iframe page directly the page gets included into your page again. And if someone else is including the iframe the page gets also redirected to your page again.

Best, Michael