Restrict access to iframed domain through anything but its parent frame / domain

296 Views Asked by At

I have a site on one domain (say, iframedomain.com), which is loaded via iframe through another domain (say, parentdomain.com) and I want to prevent users from accessing it directly. How do I ensure that anyone attempting to access iframedomain.com get redirected to parentdomain.com without hindering SEO to iframedomain.com?

1

There are 1 best solutions below

0
On BEST ANSWER

Solved this issue using this script here:

http://geekswithblogs.net/rashid/archive/2007/01/13/103518.aspx