1、首先做的網(wǎng)站代碼要仔細檢查看下有沒有不正常的代碼,確保網(wǎng)站的代碼是綠色安全的,而且代碼沒有漏洞,如果有話,需要進行修復(fù)。
2、Windows Server 2012 R2服務(wù)器IIS8.5的網(wǎng)站上要進行安全設(shè)置,如找到網(wǎng)站的根目錄,看到有無web.config文件,如果沒有就需要進行增加以下代碼:

<configuration>
<system.webServer>
<rewrite>
<rules>
<!--301重定向把不帶3W的域名 定向到帶3W-->
<rule name="301Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^boroad.net$" />
</conditions>
<action type="Redirect" url="http://m.mabhome.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<directoryBrowse enabled="false" />
<defaultDocument enabled="true">
<files>
<clear />
<add value="index.html" />
<add value="index.php" />
</files>
</defaultDocument>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<add name="X-Content-Type-Options" value="nosniff" />
<add name="X-Frame-Options" value="DENY" />
<add name="X-XSS-Protection" value="1; mode=block" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
AppScan檢測到X-Frame-Options響應(yīng)頭缺失,這可能會造成跨幀腳本編制攻擊,這只需要添加以上紅色標出的代碼即可。
另外也可以在HTML前端添加解決方法:
<meta http-equiv="X-Frame-Options" content="SAMEORIGIN">
