/    Sign up×
Community /Pin to ProfileBookmark

How To Track Urls Loading In iFrame ?

Folks,

Say I want to log what you browse. I can always run a web proxy and make you a member and get you to browse the web using your member account and get your account to log what you are browsing on the web. But, web proxies are bandwidth hogs since the page fetching is done on the serverside. It will eat-up all my monthly bandwidths I get on my vps. need to change this.
And so I reckon it is best I put an iFrame on my webpage and get you to browse websites & webpages on this iFrame. That way, all the page fetching is done on clientside and my vps server bandwidth gets saved.
Now, how to log what you are browsing on the iFrame ?

Say I got this iFrame …

[code]
<iframe height=”300px” width=”100%” src=”http://www.google.com” name=”iframe_a”></iframe>
<form action=”” method=”post”>
<input type=”text” name=”target_iframe_url” id=”iframe_url” target=”iframe_a” placeholder=”http://”>
<button type=”submit” class=”browse” name=”browse”>Go!</button>
</form>
[/code]

It opens to google.com. Now, let us say you clicked a link on google.com. I now want that link’s page to be loaded on the iframe and it’s url logged. Fetched page’s url logged. How to do this ?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@cootheadApr 06.2020 — Google will not allow ``https://www.google.com`` to be loaded in an _"iframe element"_

_coothead_
×

Success!

Help @developer_web spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...