獲取最新惡意爬蟲列表配置 Fail2ban Filter Nov 25, 2021 7 min read fail2bannginxsecurityHowTo 安裝並設置好 Fail2ban 後(可以參考Y Cheung 之前寫的『Fail2ban 配置 Nginx filter』),可以看到在 /etc/fail2ban/filter.d/nginx-badbots.conf 內容如下: # Fail2Ban configuration file # # Regexp to catch known spambots and software alike. Please verify # that it
iptables 封鎖 IP 黑名单 Nov 24, 2021 1 min read iptablessecurityHowTofirewall iptables 是Linux上的防火牆策略配置服務,簡單幾行命令就能禁止某個訪問你的網站,本文介紹使用 Ultimate bad bot blocker IP黑名單列表為源來設置 iptables 封鎖黑名單。
停止定時任務守護進程cron daemon發送郵件 Nov 22, 2021 1 min read linuxcrondHowTo 默認情況下,crond 會將所有的輸出或者錯誤信息通過email發送給執行用戶。Y CHEUNG 一個沒注意就超過mailgun的每月免費額度,2個月了,趕緊查找問題解決它。 有兩種方法可以在執行完定時任務後停止發送郵件: 1. 編輯 /etc/crontab文件中的 MAILTO 參數,將其設為空。該參數默認值是root。 MAILTO="" 2. 編輯 /etc/sysconfig/crond 文件, -s 參數將輸出發送到系統日誌。 -m off 禁止 crond 發送 email 。 CRONDARGS=
BREAKING NEWS!塔利班上台了! Aug 15, 2021 4 min read 言說阿富汗塔利班 今天(週日)下午五點左右的時候,正悠閒的躺在床上刷手機,偶然看到Twitter上新聞說阿富汗喀布爾正發生銀行擠兌,銀行的現金都沒啦,紛紛關門停止營業(Saw large crowds in front of banks in kabul. People trying get out money. A run. Told banks are now closed by an Afghan journalist. He’