Folks,
Say that, I am running a web proxy and my proxy page is 1MB in size. Say the proxy is here:
Q1.
Now, when that proxy page loads on a user’s screen then naturally 1MB bandwidth would be spend from my server’s monthly bandwidth allocation. Right ?
Q2. Now say that, that particular proxy page fetches:
and say that fetched page is 2MB in size.
That means, user loading:
will cost me 3MB total in bandwidth. Right ?
1MB used for loading the html, css, etc of:
and 2MB will used for loading the html, css, etc. of:
Correct ?
Q3. Now imagine that, that particular proxy page:
does not contain a web proxy. But an iFrame instead. And the page size is also 1MB.
And that iFrame loads the 2MB page:
Now, how much bandwidth would be spent on this occasion of my web server ?
I think only 1MB would be spent here because my page on my server is 1MB.
And, I think 2MB would be spent on the user’s side. Client side. Web browser side because whatever the iFrame fetches, is not fetched by the server but by the user’s web browser (client).
Am I right ?
This is important. I must know the answer to this.
Q4. When the iFrame loads a webpage, does the fetched page’s code (html, css, etc) get fetched by the server or the web browser (clientside) ? The answer to this should answer my Q3.
Q5. When a web proxy fetches a page, the web proxy replaces the fetched page’s links from something like this:
to something like this:
That way, all link clicks go through the proxy. I understand this basic about web proxies.
Now, I want to do the same with iFrame fetched pages so that all links visible on the page fetched by the iFrame carries my domain’s tracker.
So, if the iFrame fetches this page (for example):
and if that fetched page contains these original links:
then those links should be replaced by the following before getting loaded on the user’s/visitor’s/clientside’s screen:
This way, my website users can browse third party websites via the iFrame on my website and I can track all the links they click on the pages fetched by the iFrame.
And so, how to achieve this task ? Which iFrame code should I be looking into ?
I only know basic html, little css and fair amount of php (procedural style). So, do not give me anything hard to use such as jSON or javascript or whatever. Unless ofcourse, you know that there is no other way.