For example, I have a domain mydomain.com. Then another site somedomain.com points to my site mydomain.com. Somedomain.com used framesets so that my official site, mydomain.com, will not appear on the address bar.
How can I create a script that will check that if the referrer is somedomain.com, my site mydomain.com will override his frameset and will display instead at the address bar?
I created a PHP script by evaluating if http_referrer is equal to somedomain.com, then use header("Location: mydomain.com"). But the problem is somedomain.com will still appear on the address bar. I think header("Location:") creates a window on the parent window itself.
Is there another script to do this? I think this can be done using PHP.
This way, if they get another domain or if another site starts doing the same thing, you dont' need to change anything.