Pihole solely works by intercepting dns requests and returning fake ip info for "known ad serving hostnames".
This is a proxy that works as a "man in the middle"
So, for example, it could block ads served from the same domain as the content or even in the content by using a regular expression that matches the <div> with the ad in it. Like the ads embedded in a google search result.
This is a proxy that works as a "man in the middle"
So, for example, it could block ads served from the same domain as the content or even in the content by using a regular expression that matches the <div> with the ad in it. Like the ads embedded in a google search result.