Default to success not to captive

This commit is contained in:
Beat Jäckle 2024-12-07 16:14:26 +01:00
parent 0ff59902db
commit e0c7993aae
2 changed files with 14 additions and 6 deletions

8
links.txt Normal file
View file

@ -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/

View file

@ -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('<meta http-equiv="refresh" content="0;url=https://support.mozilla.org/kb/captive-portal"/>');
} else {
// $slash = strrchr($ua,'/');
// $ffversion = intval(substr($slash,1));
// if ($ffversion >= 89){
// die('<meta http-equiv="refresh" content="0;url=https://support.mozilla.org/kb/captive-portal"/>');
// } else {
die('success');
}
// }