Fiddler默認配置中是看不到服務器IP的,接下來簡單介紹下在fiddler上也可以看到請求的服務器IP:io
一、Fiddler---》Rules---》Customize Rules ,
二、在CustomRules.js裏搜索找到:static function Main() ,
三、添加以下一行腳本:
FiddlerObject.UI.lvSessions.AddBoundColumn("Server IP", 120, "X-HostIP");
完整js代碼以下:
static function Main() { var today: Date = new Date(); FiddlerObject.StatusText = " CustomRules.js was loaded at: " + today; // Uncomment to add a "Server" column containing the response "Server" header, if present FiddlerObject.UI.lvSessions.AddBoundColumn("Server IP", 120, "X-HostIP"); }
添加完成後,重啓下fiddler,就能夠顯示出請求的服務器ip。