[JS]avoid illegal Refer

防止盜連

 

var who=document.referrer;
if(who || who.indexOf("f-e.tw") == -1){
alert("單獨連結本頁是不當的,請連結到本站首頁!");
top.location.href = "http://f-e.tw/";
}