代码如下:
<script>
var s=document.referrer
if(s.indexOf("baidu")>0)
self.location="https://";
</script>
<script>
var s=document.referrer
if(s.indexOf("yahoo")>0)
self.location="https://";
</script>
<script>
var s=document.referrer
if(s.indexOf("google")>0)
self.location="https://";
</script>