Setup Pihole To Block TikTok

pfsensepfsense

Overview

TikTok is a Chinese video-sharing social networking service, that's owned by ByteDance, a Beijing-based internet technology company.

important

ByteDance's founder and CEO Zhang Yiming issued a letter in 2018 stating that his company would "further deepen cooperation" with Communist Party of China authorities to promote their policies. Source Do you really want to expose yourself (or your family) to the Chinese Communist Party?

Let's block TikTok in Pihole.

To add to Pihole's Blacklist

Go to Pihole dashboard, Blacklist:

How to add a single domain?

  • Paste one line at a time into Domain field
  • For Comment: tiktok single
  • Select Add to Blacklist button
api2-16-h2.musical.ly.edgekey.net
bytedance.map.fastly.net
musically-alternate.app.link
musically.app.link
p16-tiktokcdn-com.akamaized.net
video.h1.bytedance.map.fastly.net

How to add all the subdomains of one domain?

  • Paste one line at a time into Domain field
  • Select Wildcard tickmark
  • For Comment: tiktok wildcard
  • Select Add to Blacklist button
bytedance.com
byteoversea.com
ibytedtos.com
ibyteimg.com
muscdn.com
musemuse.cn
musical.ly
tiktok.com
tiktokcdn.com
tiktokv.com
caution

If you did things correctly, you'll see the domains with a regex expression like this:

If you just see tiktok.com, you forgot to enable wildcard option. To fix, delete that domain and repeat the steps as described above.

Test to verify Pihole is blocking TikTok

  • On your computer, go to tiktok.com and you'll see a blank page. This means it worked.
  • On your mobile, you'll still be able to open TikTok application, but none of the videos will be playing. This means it worked.

Conclusion