diff --git a/www/archive/.kara b/www/archive/.kara old mode 100644 new mode 100755 diff --git a/www/index.php b/www/index.php index 78d734c..94067f4 100644 --- a/www/index.php +++ b/www/index.php @@ -33,7 +33,7 @@ } function archiving (string $url): array { - system("cd ".$url." && wget -N -p -x -E -r -l 1 --no-remove-listing --no-check-certificate --restrict-file-names=windows --max-redirect=3 --default-page=index.html --reject js,json,mp4,mov,mkv,mp3,ogg,ogv ".$_POST['hozonsite']); + system("cd ".$url." && wget -N -p -x -E -r -l 1 --user-agent=\"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36\" --no-remove-listing --no-check-certificate --restrict-file-names=windows --max-redirect=3 --default-page=index.html --reject js,json,mp4,mov,mkv,mp3,ogg,ogv ".$_POST['hozonsite']); if (count(array_diff(scandir($url), array('..', '.'))) == 0) { return ['code' => 0, 'err' => LOC_ERROR_HOZON_NI_SIPPAI]; }