| """ |
| Problematic domain list and lookup functions. |
| Used by fineweb_edu_audit.py to flag documents from known misinformation sources. |
| """ |
|
|
| PROBLEMATIC_DOMAINS = { |
| |
| "holocaust_denial": [ |
| "codoh.com", |
| "ihr.org", |
| "holocausthandbooks.com", |
| "inconvenienthistory.com", |
| "vho.org", |
| "holocaustdeprogrammingcourse.com", |
| "holocaustianity.com", |
| "thetruthseeker.co.uk", |
| ], |
|
|
| |
| "antivax_medical_misinfo": [ |
| "naturalnews.com", |
| "mercola.com", |
| "articles.mercola.com", |
| "greenmedinfo.com", |
| "vaccinationinformationnetwork.com", |
| "ageofautism.com", |
| "thinktwice.com", |
| "nvic.org", |
| "learntherisk.org", |
| "childrenshealthdefense.org", |
| "globalresearch.ca", |
| "healthimpactnews.com", |
| "wakingtimes.com", |
| "collective-evolution.com", |
| "healthnutnews.com", |
| "preventdisease.com", |
| "realfarmacy.com", |
| "naturalsociety.com", |
| "fluoridealert.org", |
| "drweil.com", |
| ], |
|
|
| |
| "climate_denial": [ |
| "wattsupwiththat.com", |
| "climatedepot.com", |
| "co2science.org", |
| "heartland.org", |
| "cfact.org", |
| "climatechangedispatch.com", |
| "joannenova.com.au", |
| "notrickszone.com", |
| "principia-scientific.com", |
| "climaterealists.com", |
| "drroyspencer.com", |
| "conservapedia.com", |
| "heritage.org", |
| "ncpa.org", |
| "wind-watch.org", |
| ], |
|
|
| |
| "conspiracy": [ |
| "infowars.com", |
| "prisonplanet.com", |
| "davidicke.com", |
| "abovetopsecret.com", |
| "beforeitsnews.com", |
| "zerohedge.com", |
| "vigilantcitizen.com", |
| "henrymakow.com", |
| "rense.com", |
| "rumormillnews.com", |
| "whatreallyhappened.com", |
| "activistpost.com", |
| "21stcenturywire.com", |
| "thecommonsenseshow.com", |
| "freerepublic.com", |
| "wnd.com", |
| "unknowncountry.com", |
| ], |
|
|
| |
| "pseudoscience": [ |
| "spiritscience.net", |
| "gaia.com", |
| "in5d.com", |
| "themindunleashed.com", |
| "ancient-origins.net", |
| "grahamhancock.com", |
| "bibliotecapleyades.net", |
| "crystalinks.com", |
| "ascensionglossary.com", |
| "divinecosmos.com", |
| "icr.org", |
| "answersingenesis.org", |
| "creation.com", |
| "realmagick.com", |
| "sacred-texts.com", |
| "harunyahya.com", |
| "uncommondescent.com", |
| "evolutionnews.org", |
| "crev.info", |
| "reasons.org", |
| "mysteriousuniverse.org", |
| "speakingtree.in", |
| "earth-chronicles.com", |
| ], |
|
|
| |
| "hate_extremism": [ |
| "stormfront.org", |
| "amren.com", |
| "vdare.com", |
| "counter-currents.com", |
| "theoccidentalobserver.net", |
| "radixjournal.com", |
| "unz.com", |
| "takimag.com", |
| "infogalactic.com", |
| "breitbart.com", |
| ], |
|
|
| |
| "propaganda": [ |
| "rt.com", |
| "sputniknews.com", |
| "presstv.ir", |
| "mintpressnews.com", |
| "thegrayzone.com", |
| "southfront.press", |
| "strategic-culture.su", |
| "journal-neo.su", |
| "rbth.com", |
| "newsmax.com", |
| ], |
| } |
|
|
| |
| DOMAIN_TO_CATEGORY = {} |
| for category, domains in PROBLEMATIC_DOMAINS.items(): |
| for domain in domains: |
| DOMAIN_TO_CATEGORY[domain] = category |
|
|
|
|
| def check_domain(domain): |
| """Check if a domain or any parent domain is in our problematic list.""" |
| if domain in DOMAIN_TO_CATEGORY: |
| return DOMAIN_TO_CATEGORY[domain] |
|
|
| parts = domain.split(".") |
| for i in range(1, len(parts)): |
| parent = ".".join(parts[i:]) |
| if parent in DOMAIN_TO_CATEGORY: |
| return DOMAIN_TO_CATEGORY[parent] |
|
|
| return None |
|
|