将这行代码加入到nginx的配置文件,只要请求到db文件就直接会返回404了。同理如果别的什么文件因为安全原因而不能被访问的,把db替换成对应的后缀即可。location ~ (.db)$ { return 404; } Last modification:November 20, 2021 © Allow specification reprint Like If you think my article is useful to you, please feel free to appreciate