Solved

anti frame breaker code with php

Posted on 2004-09-07
3
1,892 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.

752 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