Giter VIP home page Giter VIP logo

Comments (1)

slyfox1186 avatar slyfox1186 commented on June 5, 2024

Some of the issues with complicated regex patterns as you can see in the example you pointed out are that there are going to be casualties AKA false positives and negatives. The goal with these types of extreme regex patterns is to have 95% of matches be what you would consider a success if you were made aware of the results and understood them all, and only 5% or fewer failures. That is a ratio that would make the regex pattern well worth its salt.

To solve this issue with the examples you gave you can for the moment simply create an exact whitelist for www.google.com and google.com and the issue will be resolved for those domains as they will be overridden.

And finally, to answer your main question about what is the overall purpose..... these are well-known google ad domains, and since google uses many different rotational domains that serve up metadata and other DNS information this helps make the blanket of coverage greater which hopefully will lead to an overall decrease in the number of ads Google is able to serve you when viewing youtube videos.

In the meantime, I am working on regex whitelist and other exact whitelists to coincide with these regex blacklists. Stay tuned.

from pihole-regex.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.