Is it possible to use Wireshark to track, log, or gather statistics for hosts in my hosts file that are found during a session of web browsing? I expect I would need some sort of filter for wireshark, and then maybe a logfile analyzer for the log.
The reason I want to do this: I have a fairly complete ad-blocking hosts file from mvps.org/winhelp2002/hosts.htm and it works fine, but it must be installed on each computer on our network.
I noticed, when I stuck the keyword “doubleclick” into my router’s URL filter, a significant number of ads on various web pages were replaced by a “Blocked by Netgear” banner on a computer without a hosts file. This one little keyword has turned out to be useful to visitors who come over and use their own laptop browse the web from my network.
So I’d like to analyze the hits on the hosts file during a typical week of browsing, and see if there are some keywords that will block the majority of the advertisements from my router. I suspect that the majority of ads are generated by just a handful of domains.
Anyone know how to do this?