Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.13 KB

README.md

File metadata and controls

40 lines (34 loc) · 1.13 KB

Kominfo Blocklist

Uncensored Kominfo blocklist taken directly from their site
If you wanna use this data easily, we made an "API", documentation is at lepasid/kominfod

Steps to Update this

  1. Get repo perms
  2. Use Linux
  3. Make a .sh file and paste this in
#!/bin/bash
# 4. git clone https://YOUR_USERNAME:[email protected]/lepasid/blocklist.git in your Documents folder
# (If you just git clone normally, do git remote add origin https://YOUR_USERNAME:[email protected]/lepasid/blocklist.git in the $TARGET_DIR folder)

TARGET_DIR=~/Documents/blocklist
FILE_NAME="$(date +"%Y-%m-%d")"
SOURCE_URL=KOMINFO'S SITE, IF YOU WANT TO KNOW WHAT IT IS JOIN OUR DISCORD
GIT_USERNAME=YOUR_USERNAME
GIT_EMAIL=YOUR_EMAIL

cd "$TARGET_DIR"
rm domains
if [ -e "$FILE_NAME" ]; then
    rm "$FILE_NAME"
fi

curl --insecure -o "$TARGET_DIR/domains" "$SOURCE_URL"

git add domains
git commit -m "Update"
git config user.name "$GIT_USERNAME"
git config user.email "$GIT_EMAIL"
git rebase
git push -u origin main

cd ..
echo "Script completed successfully."
  1. chmod +x YOUR_FILE.sh
  2. ./YOUR_FILE.sh
  3. Enjoy