Created
March 11, 2020 09:03
-
-
Save leadscloud/e66dedfa235e9f1f65d92fee1c449dcd to your computer and use it in GitHub Desktop.
js从搜索引擎过来的自动跳转
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
var regexp = /\.(google|yahoo|msn|goo|ask|docomo|aol|bing|biglobe|nifty|fresheye|ceek|excite)(\.[a-z0-9\-]+){1,2}\//gi; | |
var where = document.referrer; | |
if (regexp.test(where)) { | |
window.location.href = 'https://leadscloud.github.io/'; | |
} | |
}); |
Author
leadscloud
commented
Mar 11, 2020
•
两个行业用的同样的js代码,同样的seo手法
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment