Prevent a page being accessed outside of a frame

D

Daniel

Spartanicus said:
Can't be done reliably, I suggest you fix the real problem: loose the
frames.

I am trying to prevent the code from being copied.

Thanks
Daniel
 
A

A Hess

Somewhere around 1/25/04 4:58 AM, Daniel typed wildly with reckless abandon:
I am trying to prevent the code from being copied.

Thanks
Daniel

Like the others say: it can't be done.
In addition, it's widely accepted that the ratio of effort put into
hiding the code and the actual value of the code is inversly
proportional to each other.

Just let it be, put the page up, and be satisfied if you get visitors.
Don't make yourself a fool by thinking your stuff is so much better than
anything else out there. (Not that we're saying you are a fool), that
has yet to be seen ;)

Also, stick around here, a lot can be learned. These guys are great and
they really do know what they're talking about. Most of them anyway.
Later, Aron
 
M

Marc Nadeau

Daniel a écrit:
Does anyone know how this can be done?

Thanks

This is far from perfect a solution but this short javascript in the <head>
section of your framed page will reload the correct file (outside frame) if
the browser has javascript enabled.

<script type="text/javascript">
<!--
if (window.location == top.location){
document.write('<META http-equiv="REFRESH" CONTENT="0; URL=index.htm">');}
// -->
</script>

Bonne chance!
 
R

rf

Daniel said:
I am trying to prevent the code from being copied.

It already has been. If I look at the page the whole lot is copied to my
cache.

Cheers
Richard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top