ReferrURL\RedirectPage
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
|