Skip to content

Instantly share code, notes, and snippets.

@jmathai
Last active July 1, 2023 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmathai/cf7a2b5cdd925b6b767ef728159dddf4 to your computer and use it in GitHub Desktop.
Save jmathai/cf7a2b5cdd925b6b767ef728159dddf4 to your computer and use it in GitHub Desktop.
NextDNS Smart TV Denylist
# Setup Instructions
#
# Install nextdnsapi - https://github.com/rhijjawi/NextDNS-API
# > pip install nextdnsapi
#
# Download denylist - https://perflyst.github.io/PiHoleBlocklist/SmartTV.txt
# File is attached to this gist for posterity
# > curl https://perflyst.github.io/PiHoleBlocklist/SmartTV.txt > SmartTV.txt
#! /usr/bin/env python3
from nextdnsapi.api import *
nextdns_config_id = 'YOUR_NEXTDNS_CONFIG_ID'
header = account.login("YOUR_NEXTDNS_EMAIL_ADDRESS", "YOUR_NEXTDNS_PASSWORD")
with open('SmartTV.txt') as file:
for line in file:
entry = line.strip().split(' ')[0]
if(len(entry) > 0 and entry[0] != '#'):
print("Adding to denylist: {}".format(entry))
denylist.blockdomain(entry, nextdns_config_id, header)
# Title: Smart-TV Blocklist for Pi-hole
# Version: 15December2021v1
# Description: This is a blocklist to block smart-TVs sending metadata back home, sometimes with the added benefit of blocking interface ads for apps and movie services.
# Please help with collecting domains!
# It could occur that the TV fails to receive new updates, or that other apps or services no longer work. Please report such an incident.
# Make sure to also use the extra RegEx list at https://perflyst.github.io/PiHoleBlocklist/regex.list, which helps remove regional LG ad domains among other things.
# Panasonic Viera & panny tv
0077777700140002.myhomescreen.tv
cert-test.sandbox.google.com
collect.myhomescreen.tv
usage.myhomescreen.tv
collect-us-fy2014.myhomescreen.tv
collect-us-fy2015.myhomescreen.tv
collect-us-fy2016.myhomescreen.tv
collect-us-fy2017.myhomescreen.tv
collect-us-fy2018.myhomescreen.tv
collect-us-fy2019.myhomescreen.tv
collect-us-fy2020.myhomescreen.tv
collect-eu-fy2014.myhomescreen.tv
collect-eu-fy2015.myhomescreen.tv
collect-eu-fy2017.myhomescreen.tv
collect-eu-fy2016.myhomescreen.tv
collect-eu-fy2018.myhomescreen.tv
collect-eu-fy2019.myhomescreen.tv
collect-eu-fy2020.myhomescreen.tv
usage-eu-fy2014.myhomescreen.tv
usage-eu-fy2015.myhomescreen.tv
usage-eu-fy2016.myhomescreen.tv
usage-eu-fy2017.myhomescreen.tv
usage-eu-fy2018.myhomescreen.tv
usage-eu-fy2019.myhomescreen.tv
usage-eu-fy2020.myhomescreen.tv
usage-us-fy2014.myhomescreen.tv
usage-us-fy2015.myhomescreen.tv
usage-us-fy2016.myhomescreen.tv
usage-us-fy2017.myhomescreen.tv
usage-us-fy2018.myhomescreen.tv
usage-us-fy2019.myhomescreen.tv
usage-us-fy2020.myhomescreen.tv
#mhc-ajax-eu.myhomescreen.tv # internet connection test
#mhc-ajax-eu-s2.myhomescreen.tv # internet connection test
#mhc-ajax-us.myhomescreen.tv # internet connection test
#mhc-eu.myhomescreen.tv # required for internet connectivity
mhc-sec-eu.myhomescreen.tv
#mhc-us.myhomescreen.tv # required for internet connectivity
mhc-sec-us.myhomescreen.tv
#mhc-xpana-eu.myhomescreen.tv # required to start apps
#mhc-xpana-eu-s2.myhomescreen.tv # required to start apps
#mhc-xpana-us.myhomescreen.tv # required to start apps
#vcs.vdspf.com // if blocked, notified of new firmware but unable to download/install
x2.vindicosuite.com
# Sony Bravia
# needed for applications
# needed for applications, if blocked error "no internet connection"
#applicast.ga.sony.net
#portal.store.sonyentertainmentnetwork.com
ad8641f3cff742de893d919add74c2bb.ssm1.internet.sony.tv
ad8641f3cff742de893d919add74c2bb.ssm2.internet.sony.tv
#reg.biv.sony.tv # https://github.com/notracking/hosts-blocklists/issues/384
#service.biv.sony.tv # https://github.com/notracking/hosts-blocklists/issues/384
#ssm1.internet.sony.tv # https://github.com/notracking/hosts-blocklists/issues/384
#ssm2.internet.sony.tv # https://github.com/notracking/hosts-blocklists/issues/384
#ssm3.internet.sony.tv # https://github.com/notracking/hosts-blocklists/issues/384
#update.biv.sony.tv # required for updates
api-mf1.meta.ndmdhs.com
b02.black.ndmdhs.com
bravia.dl.playstation.net
call.me.sel.sony.com
flingo.tv
sonybivstatic-a.akamaihd.net
facemap.foldlife.net
bdcore-apr-lb.bda.ndmdhs.com
tvsideviewandroidv2-cfgdst-ore-pro.bda.ndmdhs.com
api.cid.samba.tv
#platform.cid.samba.tv #See Toshiba
preferences.cid.samba.tv
# LG
ad.lgappstv.com
ibis.lgappstv.com
jp.rdx2.lgtvsdp.com
jp.lgtvsdp.com
jp.info.lgsmartad.com
lgad.cjpowercast.com.edgesuite.net
#ngfts.lge.com # blocks thumbnails from loading in the LG Content Store
smartclip.com
smartclip.net
smartshare.lgtvsdp.com
us.ad.lgsmartad.com
us.ibs.lgappstv.com
us.info.lgsmartad.com
#us.lgtvsdp.com # #117
us.rdx2.lgtvsdp.com
yumenetworks.com
aic-ngfts.lge.com
# Philips
#deviceportal.nettvservices.com # needed for apps
#epg.corio.com # needed for apps
legacyportal.nettvservices.com
nettv.corio.com
#www.ecdinterface.philips.com # Philips Hue Bridge
ad.nettvservices.com
# Samsung
abtauthprd.samsungcloudsolution.com
#acr0.samsungcloudsolution.com # https://www.reddit.com/r/oisd_blocklist/comments/m6j6fg/oisd_domain_blocklist/h3hulvq
ad.samsungadhub.com
ads.samsungads.com
amauthprd.samsungcloudsolution.com
api-hub.samsungyosemite.com
az43064.vo.msecnd.net
cdn.samsungcloudsolution.net
#configprd.samsungcloudsolution.net # https://oisd.nl/excludes.php?w=configprd.samsungcloudsolution.net
connecttv.pelmorex.com # weather app tracking
Coordinator-Production-28516768.us-east-1.elb.amazonaws.com
cpu.samsungelectronics.com
d179kwmlpc4o47.cloudfront.net
d1jwpcr0q4pcq0.cloudfront.net
d1oxlq5h9kq8q5.cloudfront.net # app icons in samsung app store
d2tnx644ijgq6i.cloudfront.net
d3mjsomixevyw7.cloudfront.net
d37ju0xanoz6gh.cloudfront.net
#dev-multiscreen.samsung.com # https://raw.githubusercontent.com/notracking/hosts-blocklists-scripts/master/hostnames.whitelist.txt
device-metrics-us.amazon.com
fkp.samsungcloudsolution.com
fkp.samsungcloudsolution.net
game.internetat.tv
gld.samsungosp.com
#gpm.samsungqbe.com # Numerous connection problems, e.g. #82
i-stream.pl
log-1.samsungacr.com
log-2.samsungacr.com
log-3.samsungacr.com
log-ingestion.samsungacr.com
log-ingestion-eu.samsungacr.com
log.internetat.tv
#multiscreen.samsung.com # https://raw.githubusercontent.com/notracking/hosts-blocklists-scripts/master/hostnames.whitelist.txt
musicid.samsungcloudsolution.com
notice.samsungcloudsolution.com
noticecdn.samsungcloudsolution.com
noticefile.samsungcloudsolution.com
oempprd.samsungcloudsolution.com
oempprd.samsungcloudsolution.net
prderrordumphsm.samsungcloudsolution.com
openapi.samsung.com
osb-apps.samsungqbe.com
osb-krsvc.samsungqbe.com
osb-eusvc.samsungqbe.com
osb.samsungqbe.com
pavv.co.kr
pipeaota.com
premium-videos.telly.com
prov.samsungcloudsolution.com
rd.samsungadhub.com
rwww.samsungotn.net
samsungacr.com
samsungadhub.com
samsungcloudsolution.com
samsungcloudsolution.net
samsungqbe.com
#samsungrm.net # https://raw.githubusercontent.com/notracking/hosts-blocklists-scripts/master/hostnames.whitelist.txt
sas.samsungcloudsolution.com
sca.samsung.com
sso.internetat.tv # account login
syncplusconfig.s3.amazonaws.com
targeted-config-test.samsungacr.com
test.samsungrm.net
us-api.samsungyosemite.com
vd.emp.prd.s3.amazonaws.com
vdterms.samsungcloudsolution.com
www.samsungrm.net
samsungelectronics.com
apu.samsungelectronics.com
bpu.samsungelectronics.com
dpu.samsungelectronics.com
kpu.samsungelectronics.com
upu.samsungelectronics.com
zpu.samsungelectronics.com
xpu.samsungelectronics.com
ypu.samsungelectronics.com
vd.contents.prod.eu.s3.amazonaws.com
data.arqiva.tv
cloud.arqiva.tv
ads.aimitv.com
samsungads.com
gamespromotion.samsungcloudsolution.com
# https://github.com/Perflyst/PiHoleBlocklist/issues/112
tvx.adgrx.com
#auth.samsungosp.com # if blocked, samsung accounts will fail to authenticate
#cdn.samsungcloudsolution.com # System update check on Samsung UE40F5500
#infolink.pavv.co.kr # Needed for appstore and login on Samsung UE40F5500
#lcprd1.samsungcloudsolution.net # ping test, no beaconing
#otnprd10.samsungcloudsolution.net # required for software update
#otnprd11.samsungcloudsolution.net # required for software update
#otnprd8.samsungcloudsolution.net # required for software update
#otnprd9.samsungcloudsolution.net # required for software update
#samsungosp.com
#samsungotn.net # system update check on Samsung UE65RU7455
#time.samsungcloudsolution.com # if blocked, services like Plex, YouTube and Amazon Video not working anymore on some Samsung TV's
#www.samsungotn.net # required for software update
#osb-ussvc.samsungqbe.com # required for TV Plus
#otn.samsungcloudcdn.com # Prevents updates on UE49KS7000 and QE55Q9FNA; https://github.com/Perflyst/PiHoleBlocklist/issues/60
#ns11.whois.co.kr # Prevents Series 7 TVs from opening YouTube
# Roku
scribe.logs.roku.com
midland.logs.roku.com
austin.logs.roku.com
cooper.logs.roku.com
liberty.logs.roku.com
display.ravm.tv
ravm.tv
# Vizio
# Required for Vizio smart tv features
#api.vizio.com
#images.vizio.com
#announcements.vizio.com # No reason to block this
# HBBTV
cdn.hbbtv.smartclip.net
hbbtv-1.eurosport.com
hbbtv-extern-fe01.sim-technik.de
hbbtv-track.redbutton.de
hbbtv.kabeleins.de
#hbbtv.prosieben.de # Blocks ProSieben apps from starting.
hbbtv.qvc.de
#hbbtv.redbutton.de # Blocks ZDF & ProSieben apps from starting.
hbbtv.rtl2.de
hbbtv.sat1.de
hbbtv.sixx.de
#hbbtv.zdf.de # Blocks ZDF apps from starting.
hbbtv01p.anixe.net
hbbtvapp.sonnenklar.tv
scheduler.hbbtv.smartclip.net
stats.hbbtv.smartclip.net
hbbtv.superrtl.de
p-hbbtv.superrtl.de
hbbtv.3sat.de
# Other useless connections from Smart-TV
2mdn.net
ad.71i.de
adv.ettoday.net
advertising.com
#api.nfl.com # required for NFL Fantasy Football App
#apicache.vudu.com # needed for Vudu's app, see issue22
cdn.smartclip.net
#cdns-content.dzcdn.net # https://oisd.nl/excludes.php?w=cdns-content.dzcdn.net
database01p.anixe.net
de.ioam.de
#drscdn.500px.org # blocks 500px on desktop
#geo.opera.com # blocks opera update
googleads.g.doubleclick.net
#itv.ard.de # ARD media lib - HBBTV
nbc-jite.nbcuni.com
redbutton-adproxy-lb-prod.redbutton.de
redbutton-lb-prod.redbutton.de
redbutton.sim-technik.de
script.ioam.de
start.digitaltext.rtl.de
stats-irl.sxp.smartclip.net
trvdp.com
tv-static.scdn.co
#tv.deezer.com # Breaks Deezer's smart-TV apps.
xml.opera.com
# Netflix
# secure, api-global, and appboot break Netflix
#secure.netflix.com
#api-global.netflix.com
#appboot.netflix.com
#nrdp.nccp.netflix.com # Netflix playback fails on Humax DTR-T2100 (YouView) STB
ichnaea.netflix.com
customerevents.netflix.com
#nrdp.prod.ftl.netflix.com # https://oisd.nl/excludes.php?w=nrdp.prod.ftl.netflix.com
# Spotify
#api-tv.spotify.com # required for TV and PS4 spotify app
# Hulu
api.distribution.hulu.com
# Sharp Smart TV using Opera OS (thanks to sml156)
# time-a.timefreq.bldrdoc.gov # probably not a good idea to block this one
# api.accuweather.com # probably not a good idea to block this one
# Hisense Smart TV
api-gps-em.hismarttv.com
auth-em.hismarttv.com
msg-em.hismarttv.com
api-launcher-em.hismarttv.com
auth-launcher-em.hismarttv.com
api-gps-na.hismarttv.com
auth-na.hismarttv.com
msg-na.hismarttv.com
api-launcher-na.hismarttv.com
auth-launcher-na.hismarttv.com
unified-ter-na.hismarttv.com
# These may be needed for software/firmware updates, not sure if it's one or both but the first one tries thousands of times a day to connect.
api.us.hismarttv.com
api.euro.hismarttv.com
# SiliconDust HDHomeRun
#tuner-api.hdhomerun.com # required for firmware update
#location-api.hdhomerun.com # required for firmware update
# Foxtel Australia cable/satellite set-top box
_xmpp-client._tcp.managed.xmpp.foxtel.com.au
managed.xmpp.foxtel.com.au
foxtel-prod-events.digitalsmiths.net
e2.resources.foxtel.com.au
a1.resources.foxtel.com.au
# Yamaha AV receivers
#avpro.global.yamaha.com # Blocks system updates on RX-V685
# Toshiba
events.cid.samba.tv
platform.cid.samba.tv
#file2fxm.azureedge.net # https://oisd.nl/excludes.php?w=file2fxm.azureedge.net
7345023508.fxmconnect.com
7345023508.fxm9485766783.com
# Xioami Mi TV
mitv.tracking.intl.miui.com
tracking.intl.miui.com
data.mistat.intl.xiaomi.com
sdkconfig.ad.intl.xiaomi.com
# Android TV (including Nvidia Shield TV)
androidtvchannels-pa.googleapis.com
androidtvwatsonfe-pa.googleapis.com
@KOX599
Copy link

KOX599 commented Jul 1, 2023

Smart TV LG ( need test )
||www.googleadservices.com^$important
||discovery.meethue.com^$important
||pl.lgtvsdp.com^$important
||www.ueiwsp.com^$important

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment