user1622303
user1622303

Reputation: 21

Load and show a page from another domain without showing the orginal URL, using javascript

I am trying to load a page from a domain (say abc.com) to my website (say xyz.com). I would like to show a page from abc.com within xyz.com without showing the original URL. This means the site visitor will not be able to find out the original source URL (abc.com).

Upvotes: 1

Views: 2593

Answers (2)

balafi
balafi

Reputation: 2153

<iframe src="http://www.xyz.com/thepage" width="300" height="300" frameBorder="0"></iframe>

Then you need to configure you server to act as reverse proxy to abc.com for the /thePage

Upvotes: 1

Imran Balouch
Imran Balouch

Reputation: 2170

Make a page in your website and put an iframe in it and set the url of that iframe as url of the page of the other website, in this way the page will be loaded from other site and url will be of your site.

<iframe src="http://www.abc.com/thepage" style="border-width:0;width:100%; height:800px;"></iframe>

Upvotes: 4

Related Questions