Welcome to WebmasterWorld Guest from 54.167.0.111

Forum Moderators: incrediBILL

Message Too Old, No Replies

Access Denied!

Frame Redirect causing ACCESS DENIED!

     

Dr_DK

2:45 am on Apr 11, 2003 (gmt 0)

10+ Year Member



Hello all,

I just can't seem to get to bottom of this!
I'm using Frame Redirect for one of my domains. When I insert this following code into the page:

<script language="JavaScript">
<!--
document.write("<img src=\"http://mypathishere/log.cgi?ref="+top.document.referrer+"\" width=1 height=1 border=0>");
//-->
</script>
<noscript>
<img src="http://mypathishere/log.cgi?ref=noscript" width=1 height=1 border=0>
</noscript>

Then when I access the domain name, on the status bar I get the error stating "Access Denied"! I've tryed all kinds of stuff, and nothing works! So the only way out of this I'm thinking is to ask the domain name people to add that piece of code with the Frameset code? It works fine if I access the page with it's regular URL! It's just messing up on the Domains Frame Redirect!
Does anyone know any other way out of this one?
Any help greatly appreciated!
Thanks.
Sincerely,
Dr. DK

Xuefer

3:05 am on Apr 11, 2003 (gmt 0)

10+ Year Member



it's top.document.referrer that cause access denied
not log.cgi

Dr_DK

3:22 am on Apr 11, 2003 (gmt 0)

10+ Year Member



How would you fix it?

Dr_DK

7:56 pm on Apr 11, 2003 (gmt 0)

10+ Year Member



I've tryed to put:

top.main

instead of

top.document.referrer

But I get the referrers as undefined!

Is there any other way to maintain the top.document.referrer? but to get rid of the error?

Thanks! Any help appreciated!

joshie76

10:08 am on Apr 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are the two pages that you're trying to work between belonging to different domains?

This simply isn't allowed - you can't communicate with a page belonging to "www.joshie67.com" from a page belonging to "www.joshtwist.com" - even if I owned both domains - this leads to an Access Denied error.

(This is an important security feature - I could set up a link to a banking site and have a hidden frameset surrounding their login page, I could then grab visitors username and password using script running in my hidden frame)

 

Featured Threads

Hot Threads This Week

Hot Threads This Month