Simon Willison’s Weblog

Subscribe

How to find the URL of a page in an iframe?

26th August 2013

My answer to How to find the URL of a page in an iframe? on Quora

You can’t, as this would be a security and privacy violation. Imagine an evil website which loads up Google in a full page iframe and then tracks what the unsuspecting user searches for and clicks on.

The only way you could achieve this is if the pages within the iframe were deliberately collaborating with you—for example, you open up a page in an iframe of www.example.org?tracker=specialcode and example.org has code which sends information on each subsequent page visited back to your server. Even then, the tracking would stop working once the user clicked a link to a page not hosted on example.org

This is How to find the URL of a page in an iframe? by Simon Willison, posted on 26th August 2013.

Next: What are some good Facebook Graph search queries?

Previous: Benefits and disadvantages of cashflow positive startups joining an accelerator program?

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe