Content Protector

[Total: 0    Average: 0/5]

If your content page is loaded directly (not in frames) the page is reloaded in your frames.

Body Code:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
ok_urls = new Array();
ok_urls[1] = "http://your-web-site-address-here.com/frameset.html";
ok_urls[2] = "http://www.your-web-site-address-here.com/frameset.html";

// Enter all the possible web addresses that your site's frameset
// page can be accessed online, such as with and without the 'www'

function reportError(msg, url, line) {
if (url == window.location.href) {

msg = "nBandwidth Theft Alert!nn" +
"This site is illegally stealing bandwidthn" +
"from our site, WWW.OUR-SITE.COM.nn" +
"We will now load the content pagen" +
"from our server so you may view it.nn" +
"Thanks for your patience!";
alert(msg);

top.location.href = ok_urls[1] + "?" + window.location.href;
return true;
   }
}

window.onerror = reportError;

url_found = 0;
for (var i = 1; i <= ok_urls.length && !url_found; i++) {
url_found = (parent.location.href.indexOf(ok_urls[i]) == -1);
}
if (!url_found || (window == top))
top.location.href = ok_urls[1] + "?" + window.location.href;
//  End -->
</script>

Times Viewed: 2

Leave a Reply

Your email address will not be published. Required fields are marked *