The amount of times I am restarting fiddler and adding the same URLs or processes to filter out is getting a bit mundane. I have Outlook, Skype running which all clutter up the list. Also IE is running. I just want to focus on a single URL within a session.
Is there a filter list where I can save the filters to and easily switch on switch off this?
15 Answers, 1 is accepted
Normally Fiddler persists filters on restart. Is this not working for you?
Or is it that you are frequently switching between a number of different filters and want these saved?
Regards,
Tsviatko Yovtchev
Telerik by Progress
Hi Tsviatko,
It doesn't seem to be persisting for me.
I am adding filters using Right-Click then Filter Now context menu. I don't really want to see anything to/from www.telerik.com for example. The same with the Outlook process. I have to readd these everytime. Would be good if I didn't. Unless there is a different way to do this.
Regards
Paul
Sorry for the late response.
By default Fiddler will try saving your filters in your MyDocuments\Fiddler2\Filters\LastSession.ffx . Is it possible that Fiddler does not have write access to this location?
You can also save/load custom filter sets from the Actions button in the Filters tab. Does that work for you?
Regards,
Tsviatko Yovtchev
Telerik by Progress
Hi Tsviatko ,
My LastSession.ffx has not been changed since 10th June 2016. In that time I have ran fiddler many times.
Fiddler having write access? Would that not be my user not having access? I've tried running as administrator and my normal account.
As for the Filters tab, I am not sure what is going on here. I have the following Hide the following Hosts:
www.telerik.com; nexus.officeapps.live.com; a.company-target.com;
But yet it still shows them when I click on the Actions->Run Filterset now.
Thanks
Paul
That's weird. Could you move the ffx file to a different location? Maybe another program locked it. Let's see whether Fiddler would be able to create it again.
Regards,
Tsviatko Yovtchev
Telerik by Progress
I have the same issue. I would love to have a way for them to persist.
I see this and believe its not possible: https://fiddler.ideas.aha.io/ideas/FID-I-114
Currently, the Quick Filters (the ones created by right clicking on session and selecting "Filter now") cannot be saved between sessions. A workaround for this is using the "Filters" tab, which can be saved and restored between sessions. Also multiple filter sets are possible.
Regards,
Alexander
Progress Telerik
The "Client Process: Show only traffic from" setting on Filter tab cannot saved/loaded.
You are correct. However, you could achieve the same functionality with the FiddlerScript:
static
function
OnPeekAtRequestHeaders(oSession: Session) {
var
sProc = (
""
+ oSession[
"x-ProcessInfo"
]).ToLower();
if
(!sProc.StartsWith(
"chrome"
)) oSession.Ignore();
}
Regards,
Simeon
Progress Telerik
public static void OnPeekAtRequestHeaders(Session oSession)
{
var line = "";
var customFilterFileDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\Fiddler2\\Scripts\\Filters\\";
var filterFileName = customFilterFileDirectory + "CustomUrlStartsWithFilters.dat";
using(var filterFile = new StreamReader(File.OpenRead(filterFileName)))
{
while((line = filterFile.ReadLine()) != null)
{
if(oSession.url.StartsWith(oSession.hostname + line))
{
FiddlerApplication.Log.LogFormat("Custom Filter(UrlStartsWith):: Url: " + oSession.url + " starts with: " + line);
oSession["ui-hide"] = "hide urls that startwith";
}
}
}
var hostFilterFileName = customFilterFileDirectory + "CustomHostFilters.dat";
using(var hostFile = new StreamReader(File.OpenRead(hostFilterFileName)))
{
while((line = hostFile.ReadLine()) != null)
{
if(oSession.HostnameIs(line))
{
FiddlerApplication.Log.LogFormat("Custom Filter(HostNameIs):: Host name is: " + oSession.hostname);
oSession["ui-hide"] = "hide those hosts";
}
}
}
var urlEndsWithFilterFileName = customFilterFileDirectory + "CustomUrlEndsWithFilters.dat";
using (var endsWithFile = new StreamReader(File.OpenRead(urlEndsWithFilterFileName)))
{
while ((line = endsWithFile.ReadLine()) != null)
{
if (oSession.url.EndsWith(line))
{
FiddlerApplication.Log.LogFormat("Custom Filter(UrlEndsWith):: Url: " + oSession.url + " ends with: " + line);
oSession["ui-hide"] = "hide urls that endwith";
}
}
}
}
public
static
void
OnPeekAtRequestHeaders(Session oSession)
{
var line =
""
;
var customFilterFileDirectory =
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
+
"\\Fiddler2\\Scripts\\Filters\\"
;
var filterFileName = customFilterFileDirectory +
"CustomUrlStartsWithFilters.dat"
;
using
(var filterFile =
new
StreamReader(File.OpenRead(filterFileName)))
{
while
((line = filterFile.ReadLine()) !=
null
)
{
if
(oSession.url.StartsWith(oSession.hostname + line))
{
FiddlerApplication.Log.LogFormat(
"Custom Filter(UrlStartsWith):: Url: "
+ oSession.url +
" starts with: "
+ line);
oSession[
"ui-hide"
] =
"hide urls that startwith"
;
}
}
}
var hostFilterFileName = customFilterFileDirectory +
"CustomHostFilters.dat"
;
using
(var hostFile =
new
StreamReader(File.OpenRead(hostFilterFileName)))
{
while
((line = hostFile.ReadLine()) !=
null
)
{
if
(oSession.HostnameIs(line))
{
FiddlerApplication.Log.LogFormat(
"Custom Filter(HostNameIs):: Host name is: "
+ oSession.hostname);
oSession[
"ui-hide"
] =
"hide those hosts"
;
}
}
}
var urlEndsWithFilterFileName = customFilterFileDirectory +
"CustomUrlEndsWithFilters.dat"
;
using
(var endsWithFile =
new
StreamReader(File.OpenRead(urlEndsWithFilterFileName)))
{
while
((line = endsWithFile.ReadLine()) !=
null
)
{
if
(oSession.url.EndsWith(line))
{
FiddlerApplication.Log.LogFormat(
"Custom Filter(UrlEndsWith):: Url: "
+ oSession.url +
" ends with: "
+ line);
oSession[
"ui-hide"
] =
"hide urls that endwith"
;
}
}
}
}
The amount of times I am restarting fiddler and adding the same URLs or processes to filter out is getting a bit mundane. I have Outlook, Skype running which all clutter up the list. Also IE is running. I just want to focus on a single URL within a session.
Is there a filter list where I can save the filters to and easily switch on switch off this?
[/quote]
Many thanks for that complete information!