网站正在重定向与文档引用,它破坏了搜索引擎的结果(Website is being redirected with document referrer and it's ruining search engine results)

如果你搜索谷歌的“纽约州海滩清理”,你会看到第一个结果是网站http://najomawi.com ,但标题看起来不适合这样的网站。 您还会注意到,如果您点击此链接,它会转到您的Nike鞋子网站。 只有在您使用Google结果链接时才会发生这种情况(我相信它会发生在Bing,Yahoo等)。 如果您将http://najomawi.com直接放入浏览器栏,它会将您带到正确的站点。 困惑,我检查了页面源代码(都有'查看页面源'和Chrome的检查器),发现这个......

<script> var s=document.referrer; if(s.indexOf("google")>0 || s.indexOf("bing")>0 || s.indexOf("aol")>0 || s.indexOf("yahoo")>0) { self.location='http://www.theredkicks.com'; } </script>

我不知道这是怎么到达那里的。 它出现在主页的head标签中,即index.html。 没有PHP代码,没有其他JS,除了我知道的CSS样式表之外别无他法。 整个网站几乎都是静态的HTML和CSS表。 那么这是怎么做到的? 我怎么能摆脱它呢?

If you search on Google 'new york state beach cleanup', you'll see that the first result is for the website http://najomawi.com, but the title doesn't look quite right for such a site. You'll also notice that if you click this link it instead takes you to a website for Nike shoes. It only happens if you use the Google results link though (and I believe it happens in Bing, Yahoo and others). If you put http://najomawi.com directly into your browser bar, it takes you to the correct site. Confused, I checked the page source code (both with 'View Page Source' and Chrome's inspector) and found this...

<script> var s=document.referrer; if(s.indexOf("google")>0 || s.indexOf("bing")>0 || s.indexOf("aol")>0 || s.indexOf("yahoo")>0) { self.location='http://www.theredkicks.com'; } </script>

I have no idea how this got there. It appears in the the head tags of the home page, which is index.html. There is no PHP code, no other JS, nothing other than CSS stylesheets that I am aware of. The entire site is pretty much static HTML and CSS sheets. So how did this get there? And how can I get rid of it?

最满意答案

JavaScript代码非常简单。 它只检查document.referrer包含最相关搜索引擎的名称,如果是,则将加载重定向到另一个页面,在本例中为http://www.theredkicks.com 。

您的网站肯定被黑客入侵,或者您的主机提供商不是很诚实。

请注意,此重定向中的查询字符串没有附加任何内容,因此这不是“联盟”(错误)赚钱方式。 获得某些东西的唯一人是重定向目标。

此外,非常有趣的是,您的页面显然正在处理ASP。 这很奇怪,只要你说你的网站只由静态HTML和CSS制作。

看看cookie,是这样的:

ASPSESSIONIDSATCSAAC=INMLBOADDKNKMPACCK

还有标题:

HTTP/1.1 200 OK Date: Fri, 10 Jan 2014 01:30:49 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 15168 Content-Type: text/html Cache-control: private

我不知道你在哪里托管你的网站,但你应该在那里要求紧急解决这个问题。

The JavaScript code is very simple. It just checks if document.referrer contains the name of the most relevant search engines and, if so, redirects the load to another page, in this case, http://www.theredkicks.com.

Your site certainly was hacked somehow or your host provider is not very honest.

Notice that there's nothing attached to the query string in this redirect, so this is not an "affiliate" (wrong) way to make money. The only person that is gaining something with this is the redirect target.

Also, it's very interesting that your page is aparently being processed trought ASP. That is strange, as long as you say that your site is made only by static HTML and CSS.

Look at the cookie, is something like this:

ASPSESSIONIDSATCSAAC=INMLBOADDKNKMPACCK

And also the headers:

HTTP/1.1 200 OK Date: Fri, 10 Jan 2014 01:30:49 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 15168 Content-Type: text/html Cache-control: private

I don't know where you are hosting your site, but you should claim urgent solution for this problem there.

网站正在重定向与文档引用,它破坏了搜索引擎的结果(Website is being redirected with document referrer and it's ruining search engine results)

如果你搜索谷歌的“纽约州海滩清理”,你会看到第一个结果是网站http://najomawi.com ,但标题看起来不适合这样的网站。 您还会注意到,如果您点击此链接,它会转到您的Nike鞋子网站。 只有在您使用Google结果链接时才会发生这种情况(我相信它会发生在Bing,Yahoo等)。 如果您将http://najomawi.com直接放入浏览器栏,它会将您带到正确的站点。 困惑,我检查了页面源代码(都有'查看页面源'和Chrome的检查器),发现这个......

<script> var s=document.referrer; if(s.indexOf("google")>0 || s.indexOf("bing")>0 || s.indexOf("aol")>0 || s.indexOf("yahoo")>0) { self.location='http://www.theredkicks.com'; } </script>

我不知道这是怎么到达那里的。 它出现在主页的head标签中,即index.html。 没有PHP代码,没有其他JS,除了我知道的CSS样式表之外别无他法。 整个网站几乎都是静态的HTML和CSS表。 那么这是怎么做到的? 我怎么能摆脱它呢?

If you search on Google 'new york state beach cleanup', you'll see that the first result is for the website http://najomawi.com, but the title doesn't look quite right for such a site. You'll also notice that if you click this link it instead takes you to a website for Nike shoes. It only happens if you use the Google results link though (and I believe it happens in Bing, Yahoo and others). If you put http://najomawi.com directly into your browser bar, it takes you to the correct site. Confused, I checked the page source code (both with 'View Page Source' and Chrome's inspector) and found this...

<script> var s=document.referrer; if(s.indexOf("google")>0 || s.indexOf("bing")>0 || s.indexOf("aol")>0 || s.indexOf("yahoo")>0) { self.location='http://www.theredkicks.com'; } </script>

I have no idea how this got there. It appears in the the head tags of the home page, which is index.html. There is no PHP code, no other JS, nothing other than CSS stylesheets that I am aware of. The entire site is pretty much static HTML and CSS sheets. So how did this get there? And how can I get rid of it?

最满意答案

JavaScript代码非常简单。 它只检查document.referrer包含最相关搜索引擎的名称,如果是,则将加载重定向到另一个页面,在本例中为http://www.theredkicks.com 。

您的网站肯定被黑客入侵,或者您的主机提供商不是很诚实。

请注意,此重定向中的查询字符串没有附加任何内容,因此这不是“联盟”(错误)赚钱方式。 获得某些东西的唯一人是重定向目标。

此外,非常有趣的是,您的页面显然正在处理ASP。 这很奇怪,只要你说你的网站只由静态HTML和CSS制作。

看看cookie,是这样的:

ASPSESSIONIDSATCSAAC=INMLBOADDKNKMPACCK

还有标题:

HTTP/1.1 200 OK Date: Fri, 10 Jan 2014 01:30:49 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 15168 Content-Type: text/html Cache-control: private

我不知道你在哪里托管你的网站,但你应该在那里要求紧急解决这个问题。

The JavaScript code is very simple. It just checks if document.referrer contains the name of the most relevant search engines and, if so, redirects the load to another page, in this case, http://www.theredkicks.com.

Your site certainly was hacked somehow or your host provider is not very honest.

Notice that there's nothing attached to the query string in this redirect, so this is not an "affiliate" (wrong) way to make money. The only person that is gaining something with this is the redirect target.

Also, it's very interesting that your page is aparently being processed trought ASP. That is strange, as long as you say that your site is made only by static HTML and CSS.

Look at the cookie, is something like this:

ASPSESSIONIDSATCSAAC=INMLBOADDKNKMPACCK

And also the headers:

HTTP/1.1 200 OK Date: Fri, 10 Jan 2014 01:30:49 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 15168 Content-Type: text/html Cache-control: private

I don't know where you are hosting your site, but you should claim urgent solution for this problem there.