[Pro] How to block others copying my site via frameset

I have grown rather fed up with certain individuals who simply create a page with a frameset and suddenly my web page appears under their domain name, so I’d like to stop it.

I did some research and uncovered this web page http://blog.karthikeyan.co.in/posts/how-to-prevent-block-other-web-pages-from-loading-your-page-using-frames/ with a piece of Java that is supposed to stop it and I placed the code in the site via Page > HTML Markup; setting the insert to “Before ” but it doesn’t appear to be working. Does anybody know how to make this work?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK I found the codes on this page below and the last one seems to work in a sense but it redirects to your own page rather than physically blocking access.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s an Action I wrote quite a while ago to do this:

http://freewaypro.com/actions/downloads/FrameBuster.fwaction

Walter

On Jan 26, 2011, at 7:50 PM, Ashley wrote:

I have grown rather fed up with certain individuals who simply
create a page with a frameset and suddenly my web page appears under
their domain name, so I’d like to stop it.

I did some research and uncovered this web page http://blog.karthikeyan.co.in/posts/how-to-prevent-block-other-web-pages-from-loading-your-page-using-frames/
with a piece of Java that is supposed to stop it and I placed the
code in the site via Page > HTML Markup; setting the insert to
“Before ” but it doesn’t appear to be working. Does anybody
know how to make this work?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well if someone else is framing you in, you want to bust out of that
frame, but it sounds like you want to kill all attempts for people to
see your site when they come from this foreign source – you could do
something at the server level to restrict requests from that server’s
IP address.

Walter

On Jan 26, 2011, at 8:06 PM, Ashley wrote:

OK I found the codes on this page below and the last one seems to
work in a sense but it redirects to your own page rather than
physically blocking access.

Javascript: Prevent page from frameset hijack | Techie Corner


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter. I was confused at first because in Safari the link just led me to a blank page but it worked in FireFox.

Once loaded into Freeway I applied the action to the page and in the actions palette it’s just blank. Is that correct? I tried this on one of the sites in question but it doesn’t seem to be working. Yes you are right about the Firewall and I shall look at that as well later on.

Ashley


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This Action is really old, I haven’t tried it since Freeway 2 or 3.
Post a link to the page you’ve applied it to, and I’ll see if it’s
written in the correct code or not. I don’t think it has any interface
– there’s nothing to edit or change, since all it does is insert the
frame-buster JavaScript.

Walter

On Jan 26, 2011, at 8:43 PM, Ashley wrote:

Thanks Walter. I was confused at first because in Safari the link
just led me to a blank page but it worked in FireFox.

Once loaded into Freeway I applied the action to the page and in the
actions palette it’s just blank. Is that correct? I tried this on
one of the sites in question but it doesn’t seem to be working. Yes
you are right about the Firewall and I shall look at that as well
later on.

Ashley


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK, that’s curious I am checking now and it seems to be working in Safari but not FireFox. The link of my page is http://www.nudephotopro.com and you can test it from http://www.takephotosof.us/ which is one of the sites placing mine in a frameset.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I am looking at it now and your code appears to be:

The code I tried earlier that worked was:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Looks like Firefox is enforcing the same origin rule a little more
strictly than Safari. I get this error, which does make sense:

Permission denied for http://www.nudephotopro.com to get property
Location.href from http://www.takephotosof.us.
if(top.location.href != self.location.href){

You’re going to need to block those IPs at the server level. Have a
look around at .htaccess rules that fall under the heading “anti-
leaching” and see if you find something likely. You can get the IP
address of that server using the host command in terminal:

marvin:~ waltd$ host www.takephotosof.us
www.takephotosof.us is an alias for takephotosof.us.
takephotosof.us has address 64.202.189.170
takephotosof.us mail is handled by 0 smtp.secureserver.net.
takephotosof.us mail is handled by 10 mailstore1.secureserver.net.
marvin:~ waltd$

Walter

On Jan 26, 2011, at 8:59 PM, Ashley wrote:

http://www.takephotosof.us/


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Did that work in Firefox as well? If so, that’s a much nicer way to
go. I could rev the Action to generate that instead.

Walter

On Jan 26, 2011, at 9:09 PM, Ashley wrote:

I am looking at it now and your code appears to be:

The code I tried earlier that worked was:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK thanks that is very useful. For the time being I have removed the action and reapplied the html markup that was there before. I tried three others that didn’t work at all.

It sounds like a combination of .htaccess and the firewall should do the trick. I’ll post back if I find anything useful.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That second bit of code works in both browsers.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’ve changed it now to that other bit of code after removing your action if you want to try it in FireFox now.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for the help debugging this. I’ve revised the Action and added
it to ActionsForge. I had written this in 2002! It’s still in the
original Freeway 2 Action format, which amazingly, Freeway 5 still
uses happily.

http://www.actionsforge.com/actions/view/216-framebuster

Walter

On Jan 26, 2011, at 9:09 PM, Ashley wrote:

I am looking at it now and your code appears to be:

The code I tried earlier that worked was:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,
I’ve just tried this now using your action after removing the html markup and I have the same problem as before. It works in Safari but not in FireFox. I’ve left it at present, so that you can take a look. BTW when I try to download the action using Safari all I get is a piece of html downloading, but it works from FireFox. Hopefully we can sort it all out. I am amazed it worked at all from 2002.

Cheers

Ashley


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Did you get this download behavior when downloading from ActionsForge,
or did you try to download the original script – which is unchanged
– from Freewaypro.com?

Walter

On Jan 27, 2011, at 9:38 AM, Ashley wrote:

Hi Walter,
I’ve just tried this now using your action after removing the html
markup and I have the same problem as before. It works in Safari but
not in FireFox. I’ve left it at present, so that you can take a
look. BTW when I try to download the action using Safari all I get
is a piece of html downloading, but it works from FireFox. Hopefully
we can sort it all out. I am amazed it worked at all from 2002.

Cheers

Ashley


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This was happening at ActionsForge. I am using the latest version of Safari 5.0.3 and when you click on the link it downloads a file called FrameBuster-1.fwaction.html to the downloads folder.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just tried the download from ActionsForge and got FrameBuster.fwaction.html

Haven’t actually tried the action yet.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Works for me in Safari 5.0.3 FF 3.6.13 and Chrome 8.0.552 on Mac and IE8, FF and Chrome on PC

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 27 Jan 2011, 2:17 pm, DeltaDave wrote:

Works for me in Safari 5.0.3 FF 3.6.13 and Chrome 8.0.552 on Mac and IE8, FF and Chrome on PC

D

I’ve just tried in FireFox and I.E 8 on the PC with no luck. Safari in Windows works though.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options