lemmit.online is currently allowed on sh.itjust.works but blocked on lemmy.ca so I looked into it a bit deeper and found there are other differences between the list of sitewide blocked instances for each server.

I’m bringing this to your attention as a low priority background task request to review the differences and see whether the instance in question should be blocked on both sites or allowed for each since they are both fedecan sites.

Here are some stats about the blocked instances:

  • 90 instances are blocked on lemmy.ca
  • 100 instances are blocked on sh.itjust.works
  • 29 blocked instances are common between lemmy.ca and sh.itjust.works
  • 61 instances are blocked only for lemmy.ca but not on sh.itjust.works
  • 71 instances are blocked only for sh.itjust.works but not on lemmy.ca

I’ll post in some comments to this post the list of instances blocked on only one of the two fedecan owned lemmy servers and the shell commands I used to gather the data.

  • SomethingWentWrong@lemmy.caOP
    link
    fedilink
    arrow-up
    2
    ·
    6 days ago

    shell commands to gather data about blocked instances across multiple lemmy servers

    # create an empty directory to work in to avoid clutter
    # suggest running this to create a directory for today's date:
    DATE=`date +%Y-%m-%d`; mkdir $DATE; cd $DATE
    
    # loop through list of lemmy servers to download json files of blocked instances
    # and extract the blocked domains to a txt file
    for site in lemmy.ca lemmy.ml lemmy.world lemmy.zip sh.itjust.works
    do
      echo $site
      site_base_fname=`echo $site | tr \. _`
      curl -s --request GET \
         --url https://$site/api/v3/federated_instances?kind=blocked \
         --header 'accept: application/json' > blocked_${site_base_fname}.json
      cat blocked_${site_base_fname}.json | jq -r '.federated_instances.blocked.[].domain' | sort -u > blocked_${site_base_fname}.txt
    done
    
    # number of common blocked instances for both lemmy.ca and sh.itjust.works
    comm -1 -2 blocked_lemmy_ca.txt blocked_sh_itjust_works.txt | wc
    
    # instances only blocked on lemmy.ca but not on sh.itjust.works
    comm -2 -3 blocked_lemmy_ca.txt blocked_sh_itjust_works.txt > only_blocked_for_lemmy_ca.txt
    
    # instances only blocked on sh.itjust.works but not on lemmy.ca
    comm -1 -3 blocked_lemmy_ca.txt blocked_sh_itjust_works.txt > only_blocked_for_sh_itjust_works.txt
    
    # instances blocked across at least two lemmy servers
    # h/t DDG Search Assist AI
    awk '{instances[$0]++} END { for (instance in instances) {if(instances[instance]>1) {print instances[instance], instance }}}' blocked*.txt | sort -k1,1nr -k2,2
    
    # instances blocked on at least one lemmy server
    awk '{instances[$0]++} END { for (instance in instances) { print instances[instance], instance }}' blocked*.txt | sort -k1,1nr -k2,2