Fiddler设置显式IP地址

打开Fiddler, 菜单栏:Rules->Customize Rules… 或快捷键 Ctrl+R

通过快捷键 Ctrl+F ,搜索:static function Main() 函数。 在函数中添加一行代码,如下:

   // The Main() function runs everytime your FiddlerScript compiles
    static function Main() {
        var today: Date = new Date();
        FiddlerObject.StatusText = " CustomRules.js was loaded at: " + today;
        // 显示IP 地址
        FiddlerObject.UI.lvSessions.AddBoundColumn("ServerIP", 120, "X-HostIP");

        // Uncomment to add a "Server" column containing the response "Server" header, if present
        // UI.lvSessions.AddBoundColumn("Server", 50, "@response.server");

        // Uncomment to add a global hotkey (Win+G) that invokes the ExecAction method below...
        // UI.RegisterCustomHotkey(HotkeyModifiers.Windows, Keys.G, "screenshot");
    }

然后,点击菜单栏:File –> Save 或快捷键 Ctrl+S,关闭窗口。

再次查看Fiddler请求,将多出 “ServerIP” 一列显示IP请求的IP地址。

 

posted on 2018-08-21 10:17  异彩之光  阅读(253)  评论(0编辑  收藏  举报

导航