If your content page is loaded directly (not in frames) the page is reloaded in your frames. And to the aid of webmasters everywhere, this script also foils other sites loading your content page in their frames. Visitors are notified of the bandwidth theft then are sent to the page on your site (if used with our Dynamic Frameset script) or back to your main page.
Add the below code to the <body> section of your page:
<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin ok_urls =newArray(); 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!\n\n"+ "This site is illegally stealing
bandwidth\n"+ "from our site, WWW.OUR-SITE.COM.\n\n"+ "We will now load the content
page\n"+ "from our server so you may view
it.\n\n"+ "Thanks for your patience!"; alert(msg);