D
djpnuemo
i am creating a site that i want to restrict viewing of an .html view
if the referrer isn't from my domain. i've scoured the interwebs and
found plenty of code, but none completely work. there is an example
below that does work, except for IE6. if someone could help me out to
make this work properly with IE6, i would sure appreciate it..
<SCRIPT LANGUAGE="JavaScript" >
<!-- Begin
var requiredfrom = "http://mysite.com/"; // required prev. page
if (document.referrer.indexOf(requiredfrom) == -1) {
alert("You must logon first...");
window.location='http://mysite.com/';
}
// End -->
</script>
if the referrer isn't from my domain. i've scoured the interwebs and
found plenty of code, but none completely work. there is an example
below that does work, except for IE6. if someone could help me out to
make this work properly with IE6, i would sure appreciate it..
<SCRIPT LANGUAGE="JavaScript" >
<!-- Begin
var requiredfrom = "http://mysite.com/"; // required prev. page
if (document.referrer.indexOf(requiredfrom) == -1) {
alert("You must logon first...");
window.location='http://mysite.com/';
}
// End -->
</script>