From 8f06bf0f00ee70e23987cbf5188fecb316cd6607 Mon Sep 17 00:00:00 2001 From: betaxab Date: Sun, 4 Aug 2024 12:47:46 +0800 Subject: [PATCH 1/6] update meta.ai check --- check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.sh b/check.sh index bb1f3701..2b908423 100644 --- a/check.sh +++ b/check.sh @@ -4576,7 +4576,7 @@ function WebTest_MetaAI() { fi local isBlocked=$(echo "$tmpresult" | grep -i 'AbraGeoBlockedErrorRoot') - local isOK=$(echo "$tmpresult" | grep -i 'AbraHomeRootConversationQuery') + local isOK=$(echo "$tmpresult" | grep -i 'AbraHomeRoot.react') if [ -z "$isBlocked" ] && [ -z "$isOK" ]; then echo -n -e "\r Meta AI:\t\t\t\t${Font_Red}Failed (Error: PAGE ERROR)${Font_Suffix}\n" From 8235fb79f54eb911da881497d725606e91dcea18 Mon Sep 17 00:00:00 2001 From: betaxab Date: Sun, 18 May 2025 12:00:02 +0800 Subject: [PATCH 2/6] Fix Hotstar check --- check.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check.sh b/check.sh index 2b908423..c97ed860 100644 --- a/check.sh +++ b/check.sh @@ -819,7 +819,7 @@ function MediaUnlockTest_Netflix() { echo -n -e "\r Netflix:\t\t\t\t${Font_Yellow}Originals Only${Font_Suffix}\n" return fi - + if [ -z "${result1}" ] || [ -z "${result2}" ]; then local region=$(echo "$tmpresult1" | grep -o 'data-country="[A-Z]*"' | sed 's/.*="\([A-Z]*\)"/\1/' | head -n1) echo -n -e "\r Netflix:\t\t\t\t${Font_Green}Yes (Region: ${region})${Font_Suffix}\n" @@ -2008,6 +2008,10 @@ function MediaUnlockTest_HotStar() { echo -n -e "\r HotStar:\t\t\t\t${Font_Yellow}No (Discontinued in the US)${Font_Suffix}\n" return fi + if [ -z "$siteRegion" ]; then + echo -n -e "\r HotStar:\t\t\t\t${Font_Red}No${Font_Suffix}\n" + return + fi if [ "$region" == "$siteRegion" ]; then echo -n -e "\r HotStar:\t\t\t\t${Font_Green}Yes (Region: ${region})${Font_Suffix}\n" return From 29f7b072e8f7afcca1a978639599b2efd90f30bc Mon Sep 17 00:00:00 2001 From: betaxab Date: Sun, 18 May 2025 12:28:41 +0800 Subject: [PATCH 3/6] Fix STARZ check --- check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.sh b/check.sh index c97ed860..090d8fb9 100644 --- a/check.sh +++ b/check.sh @@ -2384,7 +2384,7 @@ function MediaUnlockTest_Starz() { return fi - local authorization=$(curl ${CURL_DEFAULT_OPTS} -s 'https://www.starz.com/sapi/header/v1/starz/us/09b397fc9eb64d5080687fc8a218775b' -H "Referer: https://www.starz.com/us/en/" --user-agent "${UA_BROWSER}") + local authorization=$(curl ${CURL_DEFAULT_OPTS} -s 'https://www.starz.com/sapi/header/v1/starz/us/e17d634364cc406d9dac700e4e1f911d' -H 'accept: */*' -H 'accept-language: en-US,en;q=0.9' -H 'referer: https://www.starz.com/us/en/' -H "sec-ch-ua: ${UA_SEC_CH_UA}" -H 'sec-ch-ua-mobile: ?0' -H 'sec-ch-ua-platform: "Windows"' -H 'sec-fetch-dest: empty' -H 'sec-fetch-mode: cors' -H 'sec-fetch-site: same-origin' --user-agent "${UA_BROWSER}") if [ -z "$authorization" ]; then echo -n -e "\r Starz:\t\t\t\t\t${Font_Red}Failed (Network Connection)${Font_Suffix}\n" return From bb6ebb52ddd9df302549dc2677f2839bbdf7f7c2 Mon Sep 17 00:00:00 2001 From: betaxab Date: Mon, 19 May 2025 11:45:49 +0800 Subject: [PATCH 4/6] update Claude AI check --- check.sh | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/check.sh b/check.sh index 090d8fb9..cc2a9d77 100644 --- a/check.sh +++ b/check.sh @@ -4559,17 +4559,14 @@ function WebTest_Gemini() { } function WebTest_Claude() { - local UA_Browser="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" - local response=$(curl ${CURL_DEFAULT_OPTS} -s -o /dev/null -w "%{http_code}" -A "${UA_Browser}" "https://claude.ai/") - if [ -z "$response" ]; then - echo -n -e "\r Claude:\t\t\t\t${Font_Red}Failed (Network Connection)${Font_Suffix}\n" - return - fi - if [ "$response" -eq 200 ]; then - echo -n -e "\r Claude:\t\t\t\t${Font_Green}Yes${Font_Suffix}\n" - else - echo -n -e "\r Claude:\t\t\t\t${Font_Red}No${Font_Suffix}\n" - fi + local result=$(curl ${CURL_DEFAULT_OPTS} -sL 'https://claude.ai/' -w %{http_code} -o /dev/null -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' -H 'accept-language: en-US,en;q=0.9' -H "sec-ch-ua: ${UA_SEC_CH_UA}" -H 'sec-ch-ua-mobile: ?0' -H 'sec-ch-ua-platform: "Windows"' -H 'sec-fetch-dest: document' -H 'sec-fetch-mode: navigate' -H 'sec-fetch-site: none' -H 'sec-fetch-user: ?1' -H 'upgrade-insecure-requests: 1' --user-agent "${UA_BROWSER}") + + case "$result" in + '000') echo -n -e "\r Claude:\t\t\t\t${Font_Red}Failed (Network Connection)${Font_Suffix}\n" ;; + '403') echo -n -e "\r Claude:\t\t\t\t${Font_Green}Yes${Font_Suffix}\n" ;; + '200') echo -n -e "\r Claude:\t\t\t\t${Font_Red}No${Font_Suffix}\n" ;; + *) echo -n -e "\r Claude:\t\t\t\t${Font_Red}Failed (Error: ${result})${Font_Suffix}\n" ;; + esac } function WebTest_MetaAI() { From ca5ea2b41136f5c60cfd78e1d3d8237b6dba193b Mon Sep 17 00:00:00 2001 From: betaxab Date: Mon, 19 May 2025 11:49:42 +0800 Subject: [PATCH 5/6] Update Chrome UA Version --- check.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check.sh b/check.sh index cc2a9d77..130e780d 100644 --- a/check.sh +++ b/check.sh @@ -2,9 +2,9 @@ VER='1.0.0' -UA_BROWSER="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" -UA_SEC_CH_UA='"Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"' -UA_ANDROID="Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36" +UA_BROWSER="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36" +UA_SEC_CH_UA='"Google Chrome";v="136", "Chromium";v="136", "Not.A/Brand";v="99"' +UA_ANDROID="Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Mobile Safari/537.36" color_print() { Font_Black="\033[30m" From 2faffbd1de4a56d45c8c829727bcf097d156173b Mon Sep 17 00:00:00 2001 From: betaxab Date: Mon, 19 May 2025 12:14:05 +0800 Subject: [PATCH 6/6] update Claude AI Check --- check.sh | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/check.sh b/check.sh index 130e780d..4a449bea 100644 --- a/check.sh +++ b/check.sh @@ -4559,14 +4559,28 @@ function WebTest_Gemini() { } function WebTest_Claude() { - local result=$(curl ${CURL_DEFAULT_OPTS} -sL 'https://claude.ai/' -w %{http_code} -o /dev/null -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' -H 'accept-language: en-US,en;q=0.9' -H "sec-ch-ua: ${UA_SEC_CH_UA}" -H 'sec-ch-ua-mobile: ?0' -H 'sec-ch-ua-platform: "Windows"' -H 'sec-fetch-dest: document' -H 'sec-fetch-mode: navigate' -H 'sec-fetch-site: none' -H 'sec-fetch-user: ?1' -H 'upgrade-insecure-requests: 1' --user-agent "${UA_BROWSER}") + local tmpresult=$(curl ${CURL_DEFAULT_OPTS} -sL 'https://claude.ai/' -w '%{http_code}_TAG_%{url_effective}\n' -o /dev/null -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' -H 'accept-language: en-US,en;q=0.9' -H "sec-ch-ua: ${UA_SEC_CH_UA}" -H 'sec-ch-ua-mobile: ?0' -H 'sec-ch-ua-platform: "Windows"' -H 'sec-fetch-dest: document' -H 'sec-fetch-mode: navigate' -H 'sec-fetch-site: none' -H 'sec-fetch-user: ?1' -H 'upgrade-insecure-requests: 1' --user-agent "${UA_BROWSER}") - case "$result" in - '000') echo -n -e "\r Claude:\t\t\t\t${Font_Red}Failed (Network Connection)${Font_Suffix}\n" ;; - '403') echo -n -e "\r Claude:\t\t\t\t${Font_Green}Yes${Font_Suffix}\n" ;; - '200') echo -n -e "\r Claude:\t\t\t\t${Font_Red}No${Font_Suffix}\n" ;; - *) echo -n -e "\r Claude:\t\t\t\t${Font_Red}Failed (Error: ${result})${Font_Suffix}\n" ;; - esac + local httpCode=$(echo "$tmpresult" | awk -F'_TAG_' '{print $1}') + if [ "$httpCode" == '000' ]; then + echo -n -e "\r Claude:\t\t\t\t${Font_Red}Failed (Network Connection)${Font_Suffix}\n" + return + fi + + local urlEffective=$(echo "$tmpresult" | awk -F'_TAG_' '{print $2}') + local isBlocked=$(echo "$urlEffective" | grep -i 'unavailable-in-region') + + if [ -n "$isBlocked" ]; then + echo -n -e "\r Claude:\t\t\t\t${Font_Red}No${Font_Suffix}\n" + return + fi + + if [ "$httpCode" == '403' ]; then + echo -n -e "\r Claude:\t\t\t\t${Font_Green}Yes${Font_Suffix}\n" + return + fi + + echo -n -e "\r Claude:\t\t\t\t${Font_Red}Failed (Error: ${httpCode})${Font_Suffix}\n" } function WebTest_MetaAI() {