Solved

anti frame breaker code with php

Posted on 2004-09-07
3
1,844 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 32

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web developeā€¦
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmakerā€¦
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.

707 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

13 Experts available now in Live!

Get 1:1 Help Now