From e0c7993aaec05c1b2b86bbc3fe4c7424673be1a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20J=C3=A4ckle?= Date: Sat, 7 Dec 2024 16:14:26 +0100 Subject: [PATCH] Default to success not to captive --- links.txt | 8 ++++++++ public/index.php | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 links.txt diff --git a/links.txt b/links.txt new file mode 100644 index 0000000..afe7341 --- /dev/null +++ b/links.txt @@ -0,0 +1,8 @@ +https://de.wikipedia.org/wiki/Captive_Portal#Erkennung + +http://www.msftconnecttest.com:80/connecttest.txt +http://ipv6.msftconnecttest.com:80/connecttest.txt +http://connectivitycheck.gstatic.com/generate_204 +http://detectportal.firefox.com/canonical.html +http://captive.apple.com/ + diff --git a/public/index.php b/public/index.php index 59f0ba7..71a7bea 100644 --- a/public/index.php +++ b/public/index.php @@ -8,11 +8,11 @@ if ($_SERVER['REDIRECT_URL']=='/ua'){ print($ua); die("\n"); } -$slash = strrchr($ua,'/'); -$ffversion = intval(substr($slash,1)); -if ($ffversion >= 89){ - die(''); - } else { +// $slash = strrchr($ua,'/'); +// $ffversion = intval(substr($slash,1)); +// if ($ffversion >= 89){ + // die(''); + // } else { die('success'); - } + // }