kiinlam
1/26/2015 - 3:34 AM

do not use baidu

do not use baidu

;(function($) {
    $(function() {
        var url=document.referrer;
        if ( url && url.search("http://")>-1) {
            var refurl =  url.match(/:\/\/(.[^/]+)/)[1];
            if(refurl.indexOf("baidu.com")>-1){
                alert('no baidu, no evil');
            }
        }
    });
})(jQuery);