From 147efefce821e1980f6b082b0a56d22b0ead613c Mon Sep 17 00:00:00 2001 From: swark2006 Date: Tue, 24 Mar 2026 22:08:42 +0800 Subject: [PATCH 1/5] Update AdGuard_games_list.txt add: ||plantsvszombiesfusion.com^ ||wan1234.com^ ||bloxd.io^ ||heheda.cn^ ||moe.ms^ ||cg.163.com^ --- AdGuard_games_list.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AdGuard_games_list.txt b/AdGuard_games_list.txt index 98a8002..bfa0bdc 100644 --- a/AdGuard_games_list.txt +++ b/AdGuard_games_list.txt @@ -1101,6 +1101,7 @@ sites.google.com/site/unblockedgamesvevo ||bloonsworld.com^ ||bloontowerdefense5.info^ ||bloontowerdefense5unblocked.com^ +||bloxd.io^ ||bloxorzgame.com^ ||bloxorzunblocked.com^ ||blueblockgames.com^ @@ -1383,6 +1384,7 @@ sites.google.com/site/unblockedgamesvevo ||cerolag.com^ ||ceskehry.cz^ ||cevizoyun.com^ +||cg.163.com^ ||cgratuix.com02.com^ ||chainsawmaniac.com^ ||chamoland.com^ @@ -4722,6 +4724,7 @@ sites.google.com/site/unblockedgamesvevo ||heavygames.com^ ||hedonistica.com^ ||hegemony.skotos.net^ +||heheda.cn^ ||helbreathnemesis.com^ ||heldenwelt.com^ ||helicopter-games.org^ @@ -7286,6 +7289,7 @@ sites.google.com/site/unblockedgamesvevo ||modernwar.nl^ ||modulorargentina.com.ar^ ||mofunzone.com^ +||moe.ms^ ||mogamers.net^ ||mogelpower.de^ ||mohsye.com^ @@ -8269,6 +8273,7 @@ sites.google.com/site/unblockedgamesvevo ||planetthirteen.com^ ||planetwidegames.com^ ||planetzoog.com^ +||plantsvszombiesfusion.com^ ||plarium.com^ ||plastelina.net^ ||plasticmartians.co.uk^ @@ -10610,6 +10615,7 @@ sites.google.com/site/unblockurgames^ ||wakanim.tv^ ||wakfu.com^ ||wam-poker.com^ +||wan1234.com^ ||wanderers.io^ ||war-animo.com^ ||war-brokers.io^ @@ -11148,4 +11154,4 @@ sites.google.com/site/unblockurgames^ ||zylomgames.nl^ ||zynga.com^ ||zyraffa.pl^ -||zzstudios.com^ \ No newline at end of file +||zzstudios.com^ From 10ebeb87030deff0c12debe2fe3d1f124e705b1c Mon Sep 17 00:00:00 2001 From: swark2006 Date: Tue, 24 Mar 2026 22:18:32 +0800 Subject: [PATCH 2/5] Update AdGuard_games_list.txt add: platoapp.com playtropolis.com arcadrome.com fixed issue #4 and #5 on https://github.com/Mafraysse/AdGuard_GameList-Filter/issues --- AdGuard_games_list.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AdGuard_games_list.txt b/AdGuard_games_list.txt index bfa0bdc..ccf03cd 100644 --- a/AdGuard_games_list.txt +++ b/AdGuard_games_list.txt @@ -610,6 +610,7 @@ sites.google.com/site/unblockedgamesvevo ||arcadeandaction.com^ ||arcadeangel.com^ ||arcadearena.com^ +||arcadrome.com^ ||arcadebannerexchange.net^ ||arcadebannerexchange.org^ ||arcadebanners.com^ @@ -8280,6 +8281,7 @@ sites.google.com/site/unblockedgamesvevo ||plastico.tv^ ||platico.com^ ||platinumgames-blog.cocolog-nifty.com^ +||platoapp.com^ ||play-asia.com^ ||play-free-games.com^ ||play-free-online-game.co.uk^ @@ -8430,6 +8432,7 @@ sites.google.com/site/unblockedgamesvevo ||playtonium.com^ ||playtoongames.com^ ||playtopia.fr^ +||playtropolis.com^ ||playtosor.net^ ||playvalorant.com^ ||playviking.com^ From 143b0d28cf5170697abc643da05827cb15356952 Mon Sep 17 00:00:00 2001 From: swark Date: Fri, 27 Mar 2026 22:24:32 +0800 Subject: [PATCH 3/5] Remove baidu.com baidu.com is a search engine, not game site --- AdGuard_games_list.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/AdGuard_games_list.txt b/AdGuard_games_list.txt index ccf03cd..3809a32 100644 --- a/AdGuard_games_list.txt +++ b/AdGuard_games_list.txt @@ -848,7 +848,6 @@ sites.google.com/site/unblockedgamesvevo ||badazzfemales.wordpress.com^ ||bagofgames.com^ ||bahagon.com^ -||baidu.com^ ||baits.io^ ||baixakijogos.ig.com.br^ ||bajarjuegos.org^ From 3f02600393bbc14063b73dba6740527309895822 Mon Sep 17 00:00:00 2001 From: swark2006 Date: Thu, 16 Jul 2026 10:39:12 +0800 Subject: [PATCH 4/5] Remove github.io from generated filter data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 github.io 从原始域名列表、AdGuard 规则列表和 Apple mobileconfig 中一并移除。\n\nTested:\n- rg -n '^github\.io$' Domain_list_raw.txt || true\n- rg -n '^\|\|github\.io\^$' AdGuard_games_streaming_social_list.txt || true\n- rg -n 'https://github\.io|http://github\.io' GamesStreamingSocialFilter_Apple.mobileconfig || true\n- printf 'raw=%s adguard=%s mobileconfig_https=%s\n' "4660" "4625" "4660" --- AdGuard_games_streaming_social_list.txt | 1 - Domain_list_raw.txt | 1 - GamesStreamingSocialFilter_Apple.mobileconfig | 8 +++----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/AdGuard_games_streaming_social_list.txt b/AdGuard_games_streaming_social_list.txt index 3efa6e0..2484f05 100644 --- a/AdGuard_games_streaming_social_list.txt +++ b/AdGuard_games_streaming_social_list.txt @@ -1818,7 +1818,6 @@ sites.google.com/site/unblockedgamesvevo ||girlsgogames.com^ ||girlsgogames.fr^ ||girlsjeux.com^ -||github.io^ ||giydiroyun.com^ ||gjeux.com^ ||gladiatus.com^ diff --git a/Domain_list_raw.txt b/Domain_list_raw.txt index 610bd6d..2a6270a 100644 --- a/Domain_list_raw.txt +++ b/Domain_list_raw.txt @@ -1798,7 +1798,6 @@ girlsgogames.co.uk girlsgogames.com girlsgogames.fr girlsjeux.com -github.io giydiroyun.com gladiatus.com gladiatus.fr diff --git a/GamesStreamingSocialFilter_Apple.mobileconfig b/GamesStreamingSocialFilter_Apple.mobileconfig index 4d02790..009e47f 100644 --- a/GamesStreamingSocialFilter_Apple.mobileconfig +++ b/GamesStreamingSocialFilter_Apple.mobileconfig @@ -11,7 +11,7 @@ PayloadType Configuration PayloadUUID - 66C7D3DC-A751-40F5-A451-03B9DC08C419 + DF7AC95C-BD11-406A-B9C5-CF0F532C3D7C PayloadVersion 1 PayloadContent @@ -22,13 +22,13 @@ PayloadIdentifier com.gamestreamingsocial.webcontentfilter.filter PayloadUUID - 9EF64AD2-8CD4-4400-B218-5C6B71F2F233 + 151C9391-FB8B-46EC-BB0E-1509BFF15B75 PayloadVersion 1 PayloadDisplayName Games, Streaming & Social Web Filter ContentFilterUUID - FBEBC16D-CBF9-4A95-A87B-DB036B54DE3F + C22BF5B5-07C3-48FE-A7A1-58C9227DCBB7 FilterType BuiltIn AutoFilterEnabled @@ -3635,8 +3635,6 @@ http://girlsgogames.fr https://girlsjeux.com http://girlsjeux.com - https://github.io - http://github.io https://giydiroyun.com http://giydiroyun.com https://gladiatus.com From 6abd39ca5c8bf2686ae8cf9534586fdeac7e586d Mon Sep 17 00:00:00 2001 From: swark2006 Date: Thu, 16 Jul 2026 10:42:42 +0800 Subject: [PATCH 5/5] Harden domain deletion scripts across sed variants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 remove_domain.sh 和 check_urls.sh 在 GNU sed 环境下的删除兼容性问题,并消除删除成功的假阳性。\n\n- 改为基于 awk + 临时文件的精确行删除\n- 删除前使用精确匹配,避免子串误判\n- 在删除失败或回写失败时明确报错并退出\n- 失败时清理临时文件\n\nTested:\n- bash -n remove_domain.sh check_urls.sh\n- 临时目录中精确删除 github.io,确认目标行消失且 keep.example 保留\n- 临时目录中删除 github.io 时仅存在 bamanzi.github.io,确认脚本报告未找到且文件不变\n- 临时目录中 mock wget,确认 check_urls.sh 会删除 bad.example 并保留 good.example\n- 临时目录中制造目录不可写,确认 check_urls.sh 在回写失败时非零退出并输出失败信息 --- check_urls.sh | 46 +++++++++++++++++++++++++++++++++++---------- remove_domain.sh | 49 +++++++++++++++++++++++++++++++++++++----------- 2 files changed, 74 insertions(+), 21 deletions(-) diff --git a/check_urls.sh b/check_urls.sh index 75aff14..12dc74e 100755 --- a/check_urls.sh +++ b/check_urls.sh @@ -6,6 +6,28 @@ cd "$(dirname "$0")" input_file="Domain_list_raw.txt" adguard_file="AdGuard_games_streaming_social_list.txt" +delete_exact_line() { + local target="$1" + local file="$2" + local tmp + + tmp=$(mktemp "${TMPDIR:-/tmp}/adguard-filter.XXXXXX") || return 1 + if ! awk -v target="$target" ' + BEGIN { removed = 0 } + $0 == target { removed = 1; next } + { print } + END { exit(removed ? 0 : 2) } + ' "$file" > "$tmp"; then + rm -f "$tmp" + return 1 + fi + + if ! mv "$tmp" "$file"; then + rm -f "$tmp" + return 1 + fi +} + # Vérification des URL while IFS= read -r url; do if [[ -n "$url" ]]; then @@ -15,16 +37,20 @@ while IFS= read -r url; do if [[ $? -ne 0 ]]; then echo "❌ URL invalide : $url" - # Supprimer la ligne de Listing_raw.txt - sed -i '' "\|^${url}$|d" "$input_file" + # Supprimer la ligne de Domain_list_raw.txt + if ! delete_exact_line "$url" "$input_file"; then + echo " Échec de suppression dans $input_file" + exit 1 + fi - # Chercher et supprimer la ligne correspondante dans AdGuard_games_list.txt - matched_line=$(grep -nF "$url" "$adguard_file" | head -1) - if [[ -n "$matched_line" ]]; then - line_num=$(echo "$matched_line" | cut -d: -f1) - line_content=$(echo "$matched_line" | cut -d: -f2-) - sed -i '' "${line_num}d" "$adguard_file" - echo " Supprimé de $adguard_file : $line_content" + # Supprimer la ligne correspondante dans AdGuard_games_streaming_social_list.txt + if grep -qFx "||${url}^" "$adguard_file"; then + if delete_exact_line "||${url}^" "$adguard_file"; then + echo " Supprimé de $adguard_file : ||${url}^" + else + echo " Échec de suppression dans $adguard_file" + exit 1 + fi else echo " URL non trouvée dans $adguard_file" fi @@ -35,4 +61,4 @@ while IFS= read -r url; do done < <(cat "$input_file") echo "" -echo "Vérification terminée." \ No newline at end of file +echo "Vérification terminée." diff --git a/remove_domain.sh b/remove_domain.sh index d57aeff..3c77f4a 100755 --- a/remove_domain.sh +++ b/remove_domain.sh @@ -5,6 +5,28 @@ cd "$(dirname "$0")" listing_file="Domain_list_raw.txt" adguard_file="AdGuard_games_streaming_social_list.txt" +delete_exact_line() { + local target="$1" + local file="$2" + local tmp + + tmp=$(mktemp "${TMPDIR:-/tmp}/adguard-filter.XXXXXX") || return 1 + if ! awk -v target="$target" ' + BEGIN { removed = 0 } + $0 == target { removed = 1; next } + { print } + END { exit(removed ? 0 : 2) } + ' "$file" > "$tmp"; then + rm -f "$tmp" + return 1 + fi + + if ! mv "$tmp" "$file"; then + rm -f "$tmp" + return 1 + fi +} + echo "Entrez le domaine à supprimer :" read -r domain domain=$(echo "$domain" | tr -d '[:space:]') @@ -14,21 +36,26 @@ if [[ -z "$domain" ]]; then exit 1 fi -# Supprimer de Listing_raw.txt -if grep -qF "$domain" "$listing_file"; then - line_num=$(grep -nF "$domain" "$listing_file" | head -1 | cut -d: -f1) - sed -i '' "${line_num}d" "$listing_file" - echo "✅ Supprimé de $listing_file" +# Supprimer de Domain_list_raw.txt +if grep -qFx "$domain" "$listing_file"; then + if delete_exact_line "$domain" "$listing_file"; then + echo "✅ Supprimé de $listing_file" + else + echo "❌ Échec de suppression dans $listing_file" + exit 1 + fi else echo "⚠️ Non trouvé dans $listing_file" fi -# Supprimer de AdGuard_games_list.txt -if grep -qF "$domain" "$adguard_file"; then - line_num=$(grep -nF "$domain" "$adguard_file" | head -1 | cut -d: -f1) - sed -i '' "${line_num}d" "$adguard_file" - echo "✅ Supprimé de $adguard_file" +# Supprimer de AdGuard_games_streaming_social_list.txt +if grep -qFx "||${domain}^" "$adguard_file"; then + if delete_exact_line "||${domain}^" "$adguard_file"; then + echo "✅ Supprimé de $adguard_file" + else + echo "❌ Échec de suppression dans $adguard_file" + exit 1 + fi else echo "⚠️ Non trouvé dans $adguard_file" fi -