D
D
Danil2015-03-31 06:44:31
JavaScript
Danil, 2015-03-31 06:44:31

Receiving and relaying 3rd party site content with client script?

Is it possible?
6a58df3d3c6e49f895440db2c5c47c23.jpg
A client on our site mysite.com clicks on a link, for example mysite.com/product123.html
our server sends a page to the browser, something like this :header, body: our-javascript , footer.
In the body, our script, working from the client side, loads data from a third-party site othersite.com/product456, saving the work of third-party site scripts, replaces the header and footer of the received page with ours, as well as the text of links from othersite.com/ to mysite.com/ the next time the client clicks
on the changed link, the script will re-encode it and re-request the content of the third-party site, so
---
The task is to:
2. when links were replaced, the functionality of a third-party site (scripts, ajax) was not lost during retransmission.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
olamedia., 2015-03-31
@rek888

XD
Only possible if the third party site explicitly states that your site can make requests to their site.

M
Mikhail Lyalin, 2015-03-31
@mr_jok

with a reasonable security policy, a third-party site will quickly "cover" this kind of "load", and your site will fall down in the search results

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question