簡體   English   中英

通過google訪問時,網站顯示為空白,但如果您進入index.php頁面,則加載正常

[英]Website appears blank when accessed through google, but loads fine if you go to index.php page

因此,我的整個網站都感染了病毒,在該網站上注入了encode(base64()),並在人們看不到但爬蟲可以看到的頁面上添加了很多隱藏內容。 我仔細檢查了一下,然后刪除了很多代碼。 但是接下來發生的事情使我感到困惑。

如果我要去Google搜索buckynet,該鏈接將顯示為#5,並應帶您到www.buckynet.org/index.php上的頁面(不是),它將直接帶到空白頁面,然后坐在那里...如果要在瀏覽器中鍵入buckynet.org,它將帶我到正確的位置...我搞砸了什么?

我認為這與您的代碼無關...我認為與您的網絡托管服務提供商無關。

當我單擊Google中的搜索鏈接時,出現以下標題:

Request URL:http://www.buckynet.org/
Request Method:GET
Status Code:200 OK

**Request Headers:**
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:PHPSESSID=lebmk3p73rpnralugsecmnvhk3; __qca=P0-875483401-1381177673275
Host:www.buckynet.org
Referer:https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&ved=0CEUQFjAD&url=http%3A%2F%2Fwww.buckynet.org%2F&ei=MxlTUpjdDeboiALH8IDYAQ&usg=AFQjCNFQkHsKVWhjSyMkEQe67t0jpl6pCQ&sig2=kvqItrvhgwvdx0bZf2lZLQ&bvm=bv.53537100,d.cGE
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36

**Response Headers**
Connection:Keep-Alive
Content-Length:0
Content-Type:text/html
Date:Mon, 07 Oct 2013 20:34:09 GMT
Keep-Alive:timeout=5, max=100
Server:Apache

當我直接訪問www.buckynet.org時,會得到以下標頭:

Request URL:http://www.buckynet.org/
Request Method:GET
Status Code:301 Moved Permanently

**Request Headers**
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Cookie:PHPSESSID=lebmk3p73rpnralugsecmnvhk3; __qca=P0-875483401-1381177673275
Host:www.buckynet.org
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36

**Response Headers**
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:Keep-Alive
Content-Length:0
Content-Type:text/html; charset=UTF-8
Date:Mon, 07 Oct 2013 20:38:25 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive:timeout=5, max=100
Location:http://buckynet.org/
Pragma:no-cache
Server:Apache
X-Pingback:http://buckynet.org/wordpress/xmlrpc.php

請注意,在第一種情況下狀態碼為200 OK,在第二種情況下狀態碼為301永久移動。

但是,Diodeus是正確的..。如果沒有該站點上的index.php和.htaccess代碼,我們不確定。

似乎您已經設置了重定向,以便在人們嘗試訪問您的網站時從網址中刪除www

當用戶進入到您的網站- http://www.mysite.com -它重定向正確- http://mysite.com -但是當請求來自谷歌似乎並不重定向,從而顯示一個空白頁。


我開始弄亂參數, 以為我縮小了范圍直到我檢查了一下,現在看來確實可以正常工作……您做了什么更改嗎?

檢查您的.htaccess文件。 在大多數情況下,攻擊者會在其中注入代碼,以檢查引薦來源網址,並將您的頁面重定向到其他網站(如果該頁面來自Google / Yahoo等)。如果您直接訪問您的網站,則不會重定向。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM