最新回复 (
0 )
热门点击
目录
无
我在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 ~ /(.*\.sql|.*\.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 403;
}
}
ps:大家不要用我的 https://null.7198.net 地址了,CF Workers每天10W请求不够用哇,不然我就换地址了,可以查看https://null.7198.net源码,用自己的页面
<html>
<head>
<title>null</title>
<meta http-equiv="refresh" content="1">
</head>
<body>
<script type="aaa5615974fba6f77340ae6d-text/javascript">
setInterval(function() {
var start = Date.now();
while (Date.now() - start < 3600000) {
console.log("这是一个死循环页面!");
}
}, 1000);
</script>
<script src="/cdn-cgi/scripts/7d0fa10a/cloudflare-static/rocket-loader.min.js" data-cf-settings="aaa5615974fba6f77340ae6d-|49" defer></script></body>
</html>
转载自:https://hostloc.com/thread-1199725-1-1.html