Route::fallback(function (Request $request) {
$path=$request->fullUrl();
Log::info('未找到此路径:'.$path);
return json(['code' => 90000, 'msg' => "未找到此路径"]);
});
会出现:
[2024-02-02 00:01:35] default.INFO: 未找到此路径://123.249.74.173/ [] []
[2024-02-02 01:45:14] default.INFO: 未找到此路径://123.249.74.173/.env [] []
[2024-02-02 01:45:15] default.INFO: 未找到此路径://123.249.74.173/.env [] []
[2024-02-02 01:45:15] default.INFO: 未找到此路径://123.249.74.173/.env [] []
[2024-02-02 01:45:17] default.INFO: 未找到此路径://123.249.74.173/.env [] []
[2024-02-02 01:45:17] default.INFO: 未找到此路径://123.249.74.173/.aws/credentials [] []
[2024-02-02 01:45:18] default.INFO: 未找到此路径://123.249.74.173/.aws/credentials [] []
[2024-02-02 01:45:19] default.INFO: 未找到此路径://123.249.74.173/.aws/credentials [] []
[2024-02-02 01:45:20] default.INFO: 未找到此路径://123.249.74.173/.aws/config [] []
[2024-02-02 01:45:21] default.INFO: 未找到此路径://123.249.74.173/.aws/credentials [] []
[2024-02-02 01:45:21] default.INFO: 未找到此路径://123.249.74.173/.aws/config [] []
[2024-02-02 01:45:22] default.INFO: 未找到此路径://123.249.74.173/aws/credentials [] []
[2024-02-02 01:45:22] default.INFO: 未找到此路径://123.249.74.173/.aws/config [] []
[2024-02-02 01:45:25] default.INFO: 未找到此路径://123.249.74.173/aws/credentials [] []
[2024-02-02 01:45:26] default.INFO: 未找到此路径://123.249.74.173/test.php [] []
[2024-02-02 01:45:27] default.INFO: 未找到此路径://123.249.74.173/.aws/config [] []
[2024-02-02 01:45:28] default.INFO: 未找到此路径://123.249.74.173/test.php [] []
[2024-02-02 01:45:29] default.INFO: 未找到此路径://123.249.74.173/phpinfo [] []
[2024-02-02 01:45:30] default.INFO: 未找到此路径://123.249.74.173/aws/credentials [] []
[2024-02-02 01:45:31] default.INFO: 未找到此路径://123.249.74.173/aws/credentials [] []
[2024-02-02 01:45:31] default.INFO: 未找到此路径://123.249.74.173/phpinfo [] []
[2024-02-02 01:45:33] default.INFO: 未找到此路径://123.249.74.173/_profiler/phpinfo [] []
[2024-02-02 01:45:33] default.INFO: 未找到此路径://123.249.74.173/test.php [] []
[2024-02-02 01:45:34] default.INFO: 未找到此路径://123.249.74.173/_profiler/phpinfo [] []
[2024-02-02 01:45:35] default.INFO: 未找到此路径://123.249.74.173/test.php [] []
[2024-02-02 01:45:36] default.INFO: 未找到此路径://123.249.74.173/phpinfo [] []
[2024-02-02 01:45:37] default.INFO: 未找到此路径://123.249.74.173/phpinfo.php [] []
[2024-02-02 01:45:38] default.INFO: 未找到此路径://123.249.74.173/phpinfo.php [] []
[2024-02-02 01:45:38] default.INFO: 未找到此路径://123.249.74.173/phpinfo [] []
[2024-02-02 01:45:39] default.INFO: 未找到此路径://123.249.74.173/info.php [] []
[2024-02-02 01:45:39] default.INFO: 未找到此路径://123.249.74.173/_profiler/phpinfo [] []
[2024-02-02 01:45:39] default.INFO: 未找到此路径://123.249.74.173/info.php [] []
[2024-02-02 01:45:41] default.INFO: 未找到此路径://123.249.74.173/_profiler/phpinfo [] []
[2024-02-02 01:45:42] default.INFO: 未找到此路径://123.249.74.173/phpinfo.php [] []
[2024-02-02 01:45:44] default.INFO: 未找到此路径://123.249.74.173/phpinfo.php [] []
[2024-02-02 01:45:45] default.INFO: 未找到此路径://123.249.74.173/info.php [] []
[2024-02-02 01:45:47] default.INFO: 未找到此路径://123.249.74.173/info.php [] []
[2024-02-02 03:57:31] default.INFO: 未找到此路径://123.249.74.173/ [] []
[2024-02-02 04:02:50] default.INFO: 未找到此路径://123.249.74.173/ [] []
[2024-02-02 04:40:55] default.INFO: 未找到此路径://api.ykwdw.com/ [] []
[2024-02-02 04:42:58] default.INFO: 未找到此路径://api.ykwdw.com/ [] []
[2024-02-02 04:43:05] default.INFO: 未找到此路径://api.ykwdw.com/ [] []
[2024-02-02 04:43:22] default.INFO: 未找到此路径://api.ykwdw.com/ [] []
[2024-02-02 04:54:59] default.INFO: 未找到此路径://123.249.74.173/ [] []
未找到此路径后面跟的是: 路由,这些路由很奇怪,不知道从哪里来的?大家帮忙看一下问题。
被扫描了
好的。谢谢回答~