This is a powerful tool for detecting potential DDoS attacks based on high request frequency from the same IP address. The system monitors traffic, detects anomalies, and sends real-time alerts to a Telegram bot.
- Real-Time DDoS Detection – Monitors excessive requests from the same IP within a short time frame.
- Telegram Alert System – Sends alerts with IP and WHOIS details (ISP, location, ASN).
- Spam Prevention – Implements a 5-minute cooldown per IP to avoid redundant notifications.
- Configurable Thresholds – Easily adjust detection limits via
config.env
.
To get Chat ID visit @GetMyChatID_Bot Now you will copy the chat Id and config it.
To access the bot @DDoS Detection Alert and START it.
git clone https://github.com/whitehatboy005/DDoS-Detection-Prevention-Alert.git
cd DDoS-Detection-Prevention-Alert
pip install -r requirements.txt
notepad config.env
nano config.env
Start it --> @DDoS Detection Alert
python main.py
- Tracks request frequency per IP.
- If an IP exceeds the
THRESHOLD
, an alert is triggered. - Sends a Telegram notification with WHOIS data.
- Blocks repeated alerts from the same IP for 5 minutes.
netsh advfirewall firewall show rule name=all | findstr "<BLOCKED IP>"
sudo nft list ruleset | grep "<BLOCKED IP>"
Contributions are welcome! If you have any suggestions for improvements or bug fixes, feel free to submit a pull request.
This project is licensed under the terms of the MIT license.