Search code examples
fiddler

Fiddler - unable to save multiple hosts in filter


I use filters a lot in Fiddler, to switch between filtering for multiple related sites. However, I'm having problems saving some of these filters.

As an example, if I go to the Filters tab, I can add a single domain like this:

*.example.com

and save it (using the Actions->Save Filterset... button) as example.ffx. In that file, there is a line as follows:

<slHosts>*.example.com;</slHosts>

I then change the filter to also try to include another set of domains which includes a trailing wildcard (e.g. example.co.uk, example.co.au):

*.example.com;*.example.co.*

This filters correctly at run-time, but when I try to save the new filterset (Actions->Save Filterset...), it won't save - it gives me the option to overwrite the existing example.ffx, but it doesn't save - the filters tab reverts to the original value with only *.example.com. This also happens if I save the new filterset under a different name.

This only seems to happen with trailing asterisks - the filters work, but they can't be saved. Even if I manually edit the .ffx file to include both domains like this:

<slHosts>*.example.com; *.example.co.*;</slHosts>

when I load the filterset file, it only includes the first domain in the Filters tab.


Solution

  • Fiddler's HostList object (used in the Filters tab and elsewhere) supports leading wildcards only; it does not support wildcards elsewhere in the string.

    The Filters tab's UI should properly reflect the state (e.g. when you move away, it should delete the tail-wildcard rule); I'll pass this bug along to the development team.