Solved

anti frame breaker code with php

Posted on 2004-09-07
3
1,856 Views
Last Modified: 2012-05-05
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

0
Comment
Question by:playstat
3 Comments
 
LVL 18

Expert Comment

by:arantius
ID: 11997159
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.
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11998164
Hi playstat,
as arantius said ...there is no other way, I have tried to do it a lot...never got sucess.

Regards,
---Pinal
0
 
LVL 33

Accepted Solution

by:
shalomc earned 500 total points
ID: 11999933
Hey,
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
fclose($f);
?>


ShalomC
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
API Soap Calls 4 88
Grunt No Clean Targets 6 108
site launch date and last modified date 3 80
Widget to get customer remakrs in our website. 3 47
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
The viewer will learn how to count occurrences of each item in an array.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now