[英]unwanted javascript injection into html
以前我買了一個模板來處理,在拋光和刪除不需要的腳本和樣式之后,我開始研究那個模板; 直到最近我才發現頁面末尾出現了1個腳本 - 在body標簽之后和結束html標簽之前。 腳本如下:
script src="http://i.74055djs.info/opt_1380793200421/opt_content.js?partner=74055d&channel=74055dp952&appTitle=" type="application/x-javascript"
/** See http://www.dealply.com/ for details. *//* JavaScriptJsTagUrl = DealPlyScriptTagUrlMagic; */
//body of script is here in one line
// X-HAProxy-Expires: Thu, 3 Oct 2004 09:41:38 +0000
/script>
在通過firebug網更多地調查頁面之后,我發現實際上有3個腳本被提取[http://被刪除]:
cdncache-a.akamaihd.net/loaders/1499/l.js?aoi=1311798366&pid=1499&zoneid=309980&ext=saveshare
i.74055djs.info/opt_1380719488847/opt_content.js?partner=74055d&channel=74055dp952&appTitle=
v.zilionfast.in/2663516195/?t=vrt
我搜索了所有腳本和項目的這些網址和許多子集,但沒有找到。 我的應用程序的主要腳本如下:
bootstrap/css/bootstrap-rtl.min.css
bootstrap-responsive-rtl.min.css
font-awesome/css/font-awesome.min.css
uniform.default.css
style-metro-rtl.css
style-rtl.css
style-responsive-rtl.css
default-rtl.css
jquery-1.10.1.min.js
jquery-migrate-1.2.1.min.js
jquery-ui/jquery-ui-1.10.1.custom.min.js
bootstrap/js/bootstrap-rtl.min.js
bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js
jquery-slimscroll/jquery.slimscroll.min.js
jquery.blockui.min.js
jquery.cookie.min.js
jquery.uniform.min.js
app.js - which is the main js of the application
關鍵是這些腳本之一 - 一個www [dot] dealply [dot] com是某種交易網站,這讓我覺得它是某種隱藏的頁面排名鏈接。
我不是一個高級JS編碼器,所以請幫助我解決問題
謝謝
確保您擁有模板的備份。
完全刪除腳本並查看它是否仍然有效(Francisco Presencia提出的建議),如果是,則完成。 從你向我們展示的內容中可以肯定它應該有效。
如果在刪除腳本后模板失敗,則恢復模板並聯系作者,這是一個外部腳本,因此如果它影響模板,則無法修改它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.