瀏覽代碼

Fetch from blocklist.de too

Edvinas Valatka 9 年之前
父節點
當前提交
ef22eaed23
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      e-badips

+ 5 - 0
e-badips

@@ -11,3 +11,8 @@ curl -f -s -S -m 60 -o $tmp "https://www.badips.com/get/list/${banservice}/${ban
 while read -r ip ; do
     ipset -! add ${banset} ${ip} timeout $banttl
 done < $tmp
+
+curl -f -s -S -m 60 -o $tmp  "http://api.blocklist.de/getlast.php?time=3600&service=all"
+while read -r ip ; do
+    ipset -! add ${banset} ${ip} timeout $banttl
+done < $tmp