Search code examples
htmliframecross-site

Loading a website through another website


I am trying to understand how it is possible to load a website using an iframe, but make all links go through your site. Thanks.


Solution

  • You can not, What you're willing to do is called a proxy.

    You should get the target site in your server-side script (PHP+CURL e.g), find and replace links programatically and represnet the new data to the user.