Output of "Find Ad Domain In Lists" with real URLs

Hi,

the output of "Find Ad Domain In Lists" results in this (example):

Exact matches for ssl.google-analytics.com found in:
   list.7.hosts-file.net.domains
   list.11.raw.githubusercontent.com.domains
   list.12.v.firebog.net.domains

It's not so hard to find out which block list is "behind" this sample-urls but it would be nice, if we can see the real URL. Is this possible to include in code?

So output would be like this:

https://hosts-file.net/ad_servers.txt
https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts
https://v.firebog.net/hosts/Cameleon.txt

Thanks again,

Frank

Is not going to work as Pi-hole only deals with domain names and not with full URL's.
The clients only query Pi-hole for domain names eg. the full URL entered in your browser is not passed on to Pi-hole so Pi-hole doesnt know what you entered in your browser.

Yes I know how Pi-hole works regarding Domains (a bit), but all URLs are visible in Pi-hole‘s Lists used to generate Pi-hole's Gravity.
So I thought this string can be used for the output of the search results. Just a thought...

Visible where ?

Below is a bit from one of the lists that Pi-hole is using.
You see only domain names not full URL's like for example "http://..../index.html".

pi@noads:~ $ sudo head /etc/pihole/list.1.mirror1.malwaredomains.com.domains
amazon.co.uk.security-check.ga
autosegurancabrasil.com
dadossolicitado-antendimento.sad879.mobi
hitnrun.com.my
maruthorvattomsrianjaneyatemple.org
paypalsecure-2016.sucurecode524154241.arita.ac.tz
tei.portal.crockerandwestridge.com
tonyyeo.com
update-apple.com.betawihosting.net
usaa.com-sec-inet-auth-logon-ent-logon-logon-redirectjsp.chrischadwick.com.au

@deHakkelaar The output is

Exact matches for ssl.google-analytics.com found in:
   list.7.hosts-file.net.domains

However, he wants to see something like

Exact matches for ssl.google-analytics.com found in:
   list.7.hosts-file.net.domains (https://hosts-file.net/ad_servers.txt)

or even

Exact matches for ssl.google-analytics.com found in:
   https://hosts-file.net/ad_servers.txt
1 Like

That is what i wrote...

Visible where ?

Here:

Screenshot-2017-12-30 Pi-hole Admin Console

And it says "Enter one URL..." :wink:

The difference between pihole -g and the dashboard is that they work on different data sets (dashboard adlists.list, pihole -q on the list files in /etc/pihole). Maybe @PromoFaux or @WaLLy3K want to comment on this as well.

Sorry my mistake misunderstanding.
Yeah the lists are stored as full URL's in "/etc/pihole/adlists.list".

I would be glad to have it like in the suggestion above (if it is easy to realize).

A few days ago I was also quering the ad lists and the output was something like

 Exact matches for i1.services.social.microsoft.com found in:
   list.0.raw.githubusercontent.com.domains
   list.7.raw.githubusercontent.com.domains
   list.8.raw.github.com.domains

So it was something fiddly to find out from wich List-URLs list.0 and list.7 had been generated.

You mean something like this?

$ pihole -q -adlist ssl.google-analytics.com
 Match found in https://hosts.domain.com/List.txt:
   ssl.google-analytics.com

Make sure to use the -adlist option from the command line. If I haven't understood correctly, please let me know.

@frankrpi3 are you satisfied by the availability of the -adlist function? If you think it should be the default output, we can use this FR for further discussions.

I marked this Feature Request for auto-close on Saturday otherwise as what you asked for is already implemented. Removed

I think most of the users are interested in my requested output of the URLs in the admin area of Pi-hole.

Of course the console option is nearly what I was looking for. But only in console.

3 Likes

I reply to this very old topic because I just see that in the /admin/queryads.php I got 2 differents results searching for googleads.g.doubleclick.net

Using "Search partial match":

Match found in list.0.hosts-file.net.domains:
googleads.g.doubleclick.net

Using "Search exact match"

Exact match for googleads.g.doubleclick.net found in:
list.0.hosts-file.net.domains

It's curios to see 2 different output, ok, it's the same results, but it is the same page !

The first type of search, the partial one, returns the file holding the "partial" string + the entries that contain the string itself (there might be several variations of it), where as the second, looks for the exact string and only tells you the file that has it.

1 Like