我在nginx配置里加了个下载空连接ZIP/RAR等链接,直接跳转50G的大文件
location ~ /(.*\.7z|.*\.zip|.*\.rar|.*\.tar|.*\.gz|.*\.tar\.gz)$ {
if (!-f $request_filename) {
return 301 https://cdn.eso.org/images/top100-original.zip;
}
}
还有不停刷我原来跳转页面go.php,弄了个死循环页面
location = /go.php {
return 301 https://null.7198.net;
}
真是个惊喜大礼包。。。。哈哈哈哈
修改版,杀HEAD请求
- location ~ /(.*\.7z|.*\.zip|.*\.rar|.*\.tar|.*\.gz|.*\.tgz|.*\.tar\.gz)$ {
- if (!-f $request_filename) {
- return 301 https://cdn.eso.org/images/top100-original.zip;
- }
- if ($request_method = HEAD) {
- return 301 https://null.7198.net;
- }
- }
https://hostloc.com/thread-1199725-1-1.html