• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1979
  • Last Modified:

anti frame breaker code with php

hi there

hi I am after anti-framebreaker code is there anyway to disable and filter the code on the fly from a php script.

for example

say my bar is the top frame then the center frame is the website with the window expand code. Is it possible to stop that from happening with php in the top bar.

best regards

1 Solution
Not really, unless you set up a proxy similar to, say, babelfish or google translate.  Your site would have to load the whole page, modify it, and then serve it to the user.
Hi playstat,
as arantius said ...there is no other way, I have tried to do it a lot...never got sucess.

If the center frame is not from the same domain like the top frame, then the top frame cannot access nor script the center frame.

You can write a server side HTML loader that will filter put the remote web site, for example

$f=fopen("http://host/script.dll?param=x","r+"); // r+ means read/write
$s=fread($f, 100000);
echo $s; // $s contains server response

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now