Menu Close

我在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请求

  1.         location ~ /(.*\.7z|.*\.zip|.*\.rar|.*\.tar|.*\.gz|.*\.tgz|.*\.tar\.gz)$ {
  2.             if (!-f $request_filename) {
  3.             return 301 https://cdn.eso.org/images/top100-original.zip;
  4.             }
  5.             if ($request_method = HEAD) {
  6.             return 301 https://null.7198.net;
  7.             }
  8.         }

 

https://hostloc.com/thread-1199725-1-1.html

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注