Skip to content

Instantly share code, notes, and snippets.

@leadscloud
Created March 11, 2020 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leadscloud/e66dedfa235e9f1f65d92fee1c449dcd to your computer and use it in GitHub Desktop.
Save leadscloud/e66dedfa235e9f1f65d92fee1c449dcd to your computer and use it in GitHub Desktop.
js从搜索引擎过来的自动跳转
({
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/';
}
});
@leadscloud
Copy link
Author

leadscloud commented Mar 11, 2020

var regexp = /\.(google|yahoo|msn|goo|ask|docomo|aol|bing|biglobe|nifty|fresheye|ceek|excite)(\.[a-z0-9\-]+){1,2}\//ig;
var where = document.referrer;
if (regexp.test(where)) {
	window.location.href = "http://www.mixingchina.com/product/shui-ni-hun-ning-tu-jiao-ban-she-bei.html"
}

@leadscloud
Copy link
Author

两个行业用的同样的js代码,同样的seo手法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment