473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

protecting site form frameset loading on another uri

well, after several months of learning, writing and developing my site,
(and colecting hunderts of users in few days) one person have "included"
my whole site under his domain. in frameset:

<frame src="http://fotozine.org/....

what can I do to stop such things? not just for this particular person
and his site, but in genaral?

(sorry on my clumsy english)
Janko

--
fotozine.org
"zicani okidac"
--
Jul 17 '05 #1
13 1722
Fotozine wrote:
well, after several months of learning, writing and developing my site,
(and colecting hunderts of users in few days) one person have "included"
my whole site under his domain. in frameset:

<frame src="http://fotozine.org/....

what can I do to stop such things? not just for this particular person
and his site, but in genaral?

(sorry on my clumsy english)
Janko


Hi,

With PHP?
Not a lot.

You could however make life more difficult for people that include your
page, with javascript.

No guarantuees, but simple tricks like the following forces the other person
to parse you page and remove the javascript:

<script type="text/javascript">
if (parent.frames) {
// we have a frameset
alert("This information was stolen by:....");
location = "www.disneyworld.com";
}
</script>

Regards,
Erwin Moller
Jul 17 '05 #2
Erwin Moller
<si******************************************@spam yourself.com> wrote:
<script type="text/javascript">
if (parent.frames) {
// we have a frameset
alert("This information was stolen by:....");
location = "www.disneyworld.com";
}
</script>


tnx, I will try. can such information be taken from/width $_SERVER
variable?

--
fotozine.org
"zicani okidac"
--
Jul 17 '05 #3
Fotozine wrote:
Erwin Moller
<si******************************************@spam yourself.com> wrote:
<script type="text/javascript">
if (parent.frames) {
// we have a frameset
alert("This information was stolen by:....");
location = "www.disneyworld.com";
}
</script>


tnx, I will try. can such information be taken from/width $_SERVER
variable?


Don't think so.
Jul 17 '05 #4
Erwin Moller wrote:
Fotozine wrote:

Erwin Moller
<si******************************************@sp amyourself.com> wrote:

<script type="text/javascript">
if (parent.frames) {
// we have a frameset
alert("This information was stolen by:....");
location = "www.disneyworld.com";
}
</script>

tnx, I will try. can such information be taken from/width $_SERVER
variable?

Don't think so.

One could be a little more evil and use httpd.conf to deny access from
the IP that is stealing the material.
Jul 17 '05 #5
Erwin Moller wrote:
No guarantuees, but simple tricks like the following forces the other person
to parse you page and remove the javascript:

<script type="text/javascript">
if (parent.frames) {
// we have a frameset
alert("This information was stolen by:....");
location = "www.disneyworld.com";
}
</script>


that won't work.

parent.frames evaluates to an object in some browsers even when there are no
frames.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #6
Fotozine wrote:
well, after several months of learning, writing and developing my site,
(and colecting hunderts of users in few days) one person have "included"
my whole site under his domain. in frameset:

<frame src="http://fotozine.org/....

what can I do to stop such things? not just for this particular person
and his site, but in genaral?


I think the best answer is to make sure that your web pages are clearly
marked with your domain name (e.g., as part of a logo).

If you like, you can use javascript to break out of framesets like this:

<SCRIPT type="text/javascript">
if (location.href != top.location.href) top.location.href = location.href;
</SCRIPT>

But that could cause problems (e.g. with Google image search)

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #7
NSpam wrote:
One could be a little more evil and use httpd.conf to deny access from
the IP that is stealing the material.


The remote IP address will be that of the visitor, not the site that
provided the frameset.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #8
Philip Ronan wrote:
Erwin Moller wrote:
No guarantuees, but simple tricks like the following forces the other
person to parse you page and remove the javascript:

<script type="text/javascript">
if (parent.frames) {
// we have a frameset
alert("This information was stolen by:....");
location = "www.disneyworld.com";
}
</script>


that won't work.

parent.frames evaluates to an object in some browsers even when there are
no frames.


Oh? Didn't encouter one untill now.
But thanks for the warning.
In that case a count of the frames in the parent (if exists) makes more
sense.

Regards,
Erwin Moller
Jul 17 '05 #9
Carved in mystic runes upon the very living rock, the last words of
Fotozine of comp.lang.php make plain:
well, after several months of learning, writing and developing my
site, (and colecting hunderts of users in few days) one person have
"included" my whole site under his domain. in frameset:

<frame src="http://fotozine.org/....

what can I do to stop such things? not just for this particular person
and his site, but in genaral?


There are a number of Javascript frame buster solutions. Here's one:

<SCRIPT TYPE="text/javascript">
if (top.location != self.location)
top.location = self.location;
</SCRIPT>

In your PHP script you can also check $HTTP_REFERER. If the page is in a
frame, the referer will be the URL of the frameset. However, not all
browsers pass the referer.

Personally I'd use a combination: if my page is in the thief's frame,
say something nasty, then output some JS code that will wait a few
seconds and then bust out of the frame.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #10
Alan Little wrote:
Personally I'd use a combination: if my page is in the thief's frame,
say something nasty, then output some JS code that will wait a few
seconds and then bust out of the frame.


I don't think you'd do yourself any favours by sending rude messages to your
visitors. For example, click on the image thumbnail in this web page:
<http://images.google.co.uk/images?hl=en&lr=&ie=ISO-8859-1&q=v30title>

Traffic to your website is generally something you should encourage,
regardless of how it gets there. If someone is trying to pass your content
off as their own, then talk to their ISP about it. Don't go insulting
everyone else.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #11
"Philip Ronan" <in*****@invalid.invalid> wrote in message
news:BE4E1C16.2C886%in*****@invalid.invalid...
Erwin Moller wrote:
No guarantuees, but simple tricks like the following forces the other
person
to parse you page and remove the javascript:

<script type="text/javascript">
if (parent.frames) {
// we have a frameset
alert("This information was stolen by:....");
location = "www.disneyworld.com";
}
</script>


that won't work.

parent.frames evaluates to an object in some browsers even when there are
no
frames.


if (top.location != self.location)
should do it
--
Ant
Jul 17 '05 #12
Philip Ronan wrote:
If someone is trying to pass your content off as their own,
then talk to their ISP about it.


I'd e-mail the wrongdoer first, to explain why you're
unhappy with his framing your text and to ask if he'd kindly
put a stop to it. If he carries on, then I'd take it up
with his ISP.

Have a good weekend, Philip!

--
Jock
Jul 17 '05 #13
"Philip Ronan" <in*****@invalid.invalid> wrote in message
news:BE4E32BA.2C8A3%in*****@invalid.invalid...
Alan Little wrote:
Personally I'd use a combination: if my page is in the thief's frame,
say something nasty, then output some JS code that will wait a few
seconds and then bust out of the frame.
I don't think you'd do yourself any favours by sending rude messages to

your visitors. For example, click on the image thumbnail in this web page:
<http://images.google.co.uk/images?hl=en&lr=&ie=ISO-8859-1&q=v30title>


If you're going to do something nasty, you would naturally not reveal the
fact that the visitors are looking your site and not his.

I say, ask the guy nicely to stop framing your site. If he ignore you, start
redirecting *his* visitors to spyware traps. That oughta learn him a lesson.
Jul 17 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Roland Hall | last post by:
I read Aaron's article: http://www.aspfaq.com/show.asp?id=2276 re: protecting images from linked to by other sites. There is a link at the bottom of that page that references an interesting...
1
by: LC's No-Spam Newsreading account | last post by:
I have the following arrangement working under Netscape 3 / Unix, IE6 / Win and Konqueror / Linux, but NOT under Netscape 7 Unix or Mozilla Linux (silently fails) nor under Netscape 4 Unix (fails...
6
by: Wladimir Borsov | last post by:
I would like to load multiple web pages from Internet into ONE single browser window - one below the other. How do I do that most easily ? One idea is to built a frameset (for e.g 6 web pages)...
0
by: Jim | last post by:
This si a repost, I apologize but perhaps my original inquiry got buried under all the usenet spam... I need some help getting started with a .NET web project for a commercial site. I am new to...
6
by: Noozer | last post by:
We have a web based tool used to report issues in our office. Many times the users do not enter the required information to deal with the issue. Unfortunately we don't have control of this...
1
by: Ian | last post by:
Here's an interesting delema. I have two on-line manuals built with frames. Each has a unique frameset. Some of the pages have related material and are linked. Is there a way to have a page...
15
by: KBuser | last post by:
I recently developed an internal website with various queries against our SQL server. I added buttons with Response.Redirect. These buttons do not work with Internet Explorer, however when using...
12
by: Geoff Cox | last post by:
Hello I'm having a problem loading a frameset file using an include in a php file. Nothing is displayed and when I look at the source code I see that <html> <head> <title></title>
25
by: Geoff Cox | last post by:
Hello, The following <frame src="topbar-frameset.php?newVar=<?php echo $groups; ?>"> passes the value of the variable $groups from a php file to the top page in a frameset but how do I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.