That's okay Sandeep. Thank-you for introducing me to the whole concept. It's been rather an interesting exercise. I've had a little play around, and come up with some code that will kill the framebuster in a page that I've been playing with. It's a two-file approach. There's the html file that makes the request, and the php file that retrieves the requested file then strips the offending code from it. In my simple example, I simply replace "top.location=self.location;" with "alert('Framebuster busted!');" All you'll have to do is to find, download and compress AjaxRequest.js (EDIT: http://www.ajaxtoolbox.com/request/source.php) [EDIT: No, you don't. I forgot I used a different method. Anyhow, it's still a good library] Here's some code to play with: 1. getPage.php
.*?<\/script>/i", "", $filter); */
// if($allowed&4 == 0) // 4
2. showInIFrame.html
Untitled Document
function onGoBtn()
{
var url, ifrm, src;
url = document.getElementById("urlInput").value;
ifrm = document.getElementById("tgtFrame");
src = "getPage.php?tgt="+url+"&rand="+parseInt(Math.random()*100);
ifrm.src = src;
}
URL
Load into IFrame
Target Frame