Social media filter

My daughters spend far too much time on social media. So I was looking for a way to block it. I have installed the AdGuard Home Add-on. There is the possibility to set filters yourself.
I searched the internet for different rules and merged them into my repository, Social-media Blocklists.
This repository contains rules to block Facebook, Instagram, TikTok, Youtube and Whatsapp. These are suitable for Pi-Hole or AdGuard Home.
Thanks to @Skeletorjus and @radinsky. They found a way to turn it on and off

input_boolean:
  allowfacebook:
    name: Facebook
    icon: mdi:facebook-box


automation:
  - id: enable_facebook
    alias: Enable Facebook
    hide_entity: true
    initial_state: 'on'
    trigger:
      platform: state
      entity_id: input_boolean.allowfacebook
      to: 'on'
    action:
    - service: adguard.disable_url
      data:
        url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-facebook.txt

  - id: disable_facebook
    alias: Disable Facebook
    hide_entity: true
    initial_state: 'on'
    trigger:
      platform: state
      entity_id: input_boolean.allowfacebook
      to: 'off'
    action:
    - service: adguard.enable_url
      data:
        url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-facebook.txt

I use them all as packages.

If you find other url’s to block social media, you can always fork my repo and make a PR.

1 Like