Is there a way to set Fiddler software to log only "localhost" and not all the web traffic ?
Thanks,
If you're using FireFox, Fiddler's add-on will automatically configure it to not ignore localhost when capturing traffic. If traffic from localhost is still (or suddenly) not appearing, try disabling and re-enabling traffic capture from Fiddler to goad the add-on into fixing the proxy configuration.
To get Fiddler to capture traffic when you are debugging on local host, after you hit F5 to begin degugging change the address so that localhost has a "." after it.
Fiddler Classic and fiddler Everywhere are special-purpose proxy server tools for debugging web traffic from applications like browsers. They're used to capture and record this web traffic and then forward it onto a web server.
NET Framework are hardcoded not to send requests for Localhost through any proxies, and as a proxy, Fiddler Classic will not receive such traffic. This behavior was changed for Internet Explorer 9 in the Release Candidate build. IE9 RC allows Fiddler Classic to proxy traffic sent to localhost or 127.0.
Yes you can. Fiddler has a filters option in which you can specify the name of your computer. Here's the steps:
If everything went well, fiddler has a green arrow on the Filters tab. Just browse to the website using your machine name so instead of:
http://localhost/MySite
Go to
http://my-machine-name/MySite
I found these ways to only log localhost traffic, either should work.
Here you can find how.
When I test local websites I usually add an entry in the hosts file %systemroot%\System32\drivers\etc\hosts
127.0.0.1 somewebsite
And then I set the bindings on IIS 7 to point to somewebsite
So I can test using "http://somewebsite". Fiddler tracks this.
update
To show only the localhost traffic:
Go to Rules\Customize Rules...
On Handlers class add this menu option
...
class Handlers
{
public static RulesOption("Show Localhost Only")
var m_ShowLocalHostOnly: boolean = false;
....
On the function OnBeforeRequest
... static function OnBeforeRequest(oSession: Session) {
// Hide requests based on target hostname.
if (m_ShowLocalHostOnly &&
!(oSession.host =="127.0.0.1"
|| oSession.host =="localhost"
|| oSession.host =="somewebsite"))
{
oSession["ui-hide"]="true";
}
...
Save this file (Ctrl + S), then choose the new option from the Rules menu.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With