I have a Javascript Referrer Check Script that I copied and pasted:
--------------------------------
<script>
<!--
/*Referrer Checker- By Website Abstraction
( Over 200+ free JavaScripts here!
*/
//specify valid referrals for script to accept
//if you wish an entire domain to be valid, enter that (ie: "wsabstract.com")
var validreferrals=new Array()
validreferrals[0]="
var passed=0
for (r=0;r<validreferrals.length;r++){
if (document.referrer.indexOf(validreferrals[r])!=-1){
passed=1
break
}
}
if (passed<>0){
alert("Access to the page denied! Please come through Member Menu")
history.go(-1)
}
//-->
</script>
------------------------------
Well, it works OK, if someone tries to enter the page from another url and not member's menu, but if someone just copies and pastes the url staright into the address bar of the web browser, it still works. That shouldn't be the case. If someone pastes the url straight into the address bar, it should show the propmt and not the page.
Is anyone aware of a better referrer check script?
Thanks.
--------------------------------
<script>
<!--
/*Referrer Checker- By Website Abstraction
( Over 200+ free JavaScripts here!
*/
//specify valid referrals for script to accept
//if you wish an entire domain to be valid, enter that (ie: "wsabstract.com")
var validreferrals=new Array()
validreferrals[0]="
var passed=0
for (r=0;r<validreferrals.length;r++){
if (document.referrer.indexOf(validreferrals[r])!=-1){
passed=1
break
}
}
if (passed<>0){
alert("Access to the page denied! Please come through Member Menu")
history.go(-1)
}
//-->
</script>
------------------------------
Well, it works OK, if someone tries to enter the page from another url and not member's menu, but if someone just copies and pastes the url staright into the address bar of the web browser, it still works. That shouldn't be the case. If someone pastes the url straight into the address bar, it should show the propmt and not the page.
Is anyone aware of a better referrer check script?
Thanks.