本帖最后由 sagerking 于 2022-1-4 15:11 编辑
刚看到个个mjj分享,我也分享个吧,各位自行选择 写个bash
- #!/bin/bash
-
- UA_Browser="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36";
- function func(){
- local result1=$(curl –user-agent "${UA_Browser}" -fsL –write-out %{http_code} –output /dev/null –max-time 30 "https://**flix.com/title/81215567" 2>&1)
- [[ "$result1" == "404" || "$result1" == "000" ]] && systemctl restart [email protected]
- }
- func
复制代码
代码中https://***flix 被论坛屏蔽了,注意改为NF的域名
再写个crontab
- */1 * * * * bash /root/nf.sh
复制代码
每分钟检测,解锁不执行任何,不解锁重启warp |