Forum Moderators: phranque
<script type="text/javascript" language="JavaScript"><!--
if (self!= top)
{
if (document.images)
top.location.replace(window.location.href);
else
top.location.href = window.location.href;
}
// --></script>
To prevent this kind of action?
Or will it hurt my sites SEO wise?
Anybody any experience, i am in a hurry to implement this code and find out what will happen.
[anothersite...]
The result(mysite) is shown with their toolbar at the top and within their frames.
This is kind of like the netdisaster thingy.
What should i do, seo wise to prevent this?
Also keep in mind that you may need to do a shift-reload, in order to force your browser to re-fetch the page code if it's been changed.
>>I guess you mean "caching with a proxy server" when you say "proxying" or am i wrong?
No i guess that wasn't the case.
Also keep in mind that you may need to do a shift-reload, in order to force your browser to re-fetch the page code if it's been changed.
>>You reminded me about the caching feature enabled on my website. Thanks! I deleted the cached page. That was indeed the reason.
Now my website refreshes, but unfortunately my website will be completely loaded in their page before the refreshing takes place.
Wich one would you prefer of the above codes or are there better ones available, like a php solution?
I need a piece of code that does the trick for any foreign framing site, wich cannot be blocked by that same framing site...
It is possible for the framing site to disable your ability to break out of their frames using javascript. Your best option would be to find the IP address of the framing site and use either .htaccess or some sort of server side script to block the IP address when it is the referrer.
Jezra: Are you sure the framing site can block a break-out-of-frames script? I've never heard of this except in the case that, as I mentioned earlier, it's acting as a proxy.
P.S. The IP address of the framing site is irrelevant unless, again, it's acting as a proxy.