🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #403

ReferrURL\RedirectPage

#403
From: Jeff
Date: Wed, 13 Jul 2005 18:04
17 lines
1606 bytes
The index page of one of my websites is set as the starting document in 
IIS.  I have another website the user has to log into and if the login 
is valid I redirect them to this site.  I only want this site to be able 
to be opened from my other website.  Does anyone have the code to do 
this?  I was going to use the following java script in the index page, 
but not sure if this was correct, and not sure how to redirect back to 
the website that called it.  Someone mentioned using a server side 
method for this.

<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">

if   (document.referrer != "http://www.mysite/launch.html")
       location.href = "";

</SCRIPT>

TIA
Technical Details
Message-ID: <42d557d1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,215d784cd5bad332,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 13 Jul 2005 13:04:59 -0500
From: Jeff <jbarr62307@worldnet.att.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: ReferrURL\RedirectPage
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.241.247.158
Message-ID: <42d557d1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1121277905 65.241.247.158 (13 Jul 2005 11:05:05 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail