# kickleech反爬虫 **Repository Path**: c1g/kickleech ## Basic Information - **Project Name**: kickleech反爬虫 - **Description**: shell反爬虫脚本,分析web日志找出访问量异常高的IP。 - **Primary Language**: Shell - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2023-07-06 - **Last Updated**: 2024-04-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: 反爬虫, web防火墙 ## README # [kickleech反爬虫](https://gitee.com/c1g/kickleech) ### 介绍 之前写的反爬虫脚本重新整理了一下,适合小网站单机运行,有更高的需求可以自已布WAF或云防。 反爬虫[自动封禁版](https://gitee.com/c1g/kickleech/raw/master/kickleech/README_auto.md),可以使用iptables或nginx自动封禁爬虫或攻击IP. 反爬虫[手动分析版](https://gitee.com/c1g/kickleech/raw/master/kickleech/README.md),分析显示异常ip信息。 原理是分析web日志找出访问量异常IP。 ### 优势 + 支持http_x_forwarded_for取IP + 支持iptables或nginx封禁 + 支持IPV6地址 + 支持IP黑白名单 ### 项目地址 + Gitee(国内): [https://gitee.com/c1g/kickleech](https://gitee.com/c1g/kickleech) + Blog: [https://blog.c1gstudio.com/](https://blog.c1gstudio.com/) ### 安装部署 kickleech手动版 > wget -O kickleech_manual.sh https://gitee.com/c1g/kickleech/raw/master/kickleech/kickleech_manual.sh > chmod +x ./kickleech_manual.sh > #脚本会自动创建临时目录和日志目录,也可以手动创建 > mkdir -p /opt/nginx/logs/ > mkdir ./log > > ./kickleech_manual.sh kickleech自动版 > mkdir -p /opt/shell/log && cd /opt/shell > wget -O kickleech_auto.sh https://gitee.com/c1g/kickleech/raw/master/kickleech/kickleech_auto.sh > chmod +x ./kickleech_auto.sh > #脚本会自动创建临时目录和日志目录,也可以手动创建 > mkdir -p /opt/nginx/logs/ > ./kickleech_auto.sh > #加入crontab自动运行 > crontab -e > */3 * * * * cd /opt/shell && /bin/sh ./kickleech_auto.sh > /dev/null 2>&1