https://github.com/nancy59/real-time-ip-blocker-windows
A Python-based GUI tool to dynamically create, manage, and delete Windows Firewall rules for blocking or unblocking IP addresses in real-time.
https://github.com/nancy59/real-time-ip-blocker-windows
cybersecurity cybersecurityprojects firewall-rules ip-blocker ip-management netsh python security-project tkinter tkintergui windows
Last synced: about 1 month ago
JSON representation
A Python-based GUI tool to dynamically create, manage, and delete Windows Firewall rules for blocking or unblocking IP addresses in real-time.
- Host: GitHub
- URL: https://github.com/nancy59/real-time-ip-blocker-windows
- Owner: Nancy59
- Created: 2025-06-16T15:27:01.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-16T16:24:05.000Z (12 months ago)
- Last Synced: 2025-06-16T16:38:38.939Z (12 months ago)
- Topics: cybersecurity, cybersecurityprojects, firewall-rules, ip-blocker, ip-management, netsh, python, security-project, tkinter, tkintergui, windows
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Real-Time IP Blocker (Windows)
A Python GUI tool to dynamically block/unblock IP addresses using Windows Firewall rules in real-time.
This tool allows users to block or unblock specific IP addresses for inbound, outbound, or both traffic directions. Useful for network access control, cybersecurity labs, system administration, and educational purposes.
## 🔧 Features
- Block IP addresses using Windows Firewall
- Unblock IP addresses with dropdown selection
- Inbound / Outbound / Both direction blocking supported
- Automatic DNS flush after unblocking
- Real-time command log window
- GUI built with Python `tkinter`
- JSON-based rule storage for easy management
- Requires Administrator privileges to modify firewall rules
## 💻 Technologies Used
- Python 3.x
- tkinter (GUI)
- subprocess module (system command execution)
- netsh (Windows Firewall command-line tool)
- ipconfig (DNS flushing)
## ⚠ Requirements
- Windows OS
- Python 3 installed
- Run the script as Administrator
## 📂 Files Included
- `firewall_rule_manager.py` → Main source code
## 🚀 Usage
1. Clone the repository:
```bash
https://github.com/Nancy59/real-time-ip-blocker-windows.git
```
2. Navigate to the project folder:
```bash
cd real-time-ip-blocker-windows
```
3. Run the script as Administrator:
```bash
python firewall_rule_manager.py
```
> ⚠ Note: Always run this tool with Admin privileges or you'll get permission errors.
## 📌 Disclaimer
This tool is intended for educational and research purposes only.
- Always use with caution on your personal system.
- Do not use this tool in any production, enterprise, or unauthorized network environment.
- Modifying firewall rules may disrupt network connectivity or other applications.
- The author is not responsible for any damage, data loss, or network outages caused by improper usage of this tool.
- Use only on systems where you have full permission to modify firewall settings.
## 🙏 Note
This project is developed as part of my learning journey in cybersecurity and network security.
If you find any bugs, issues, or have suggestions for improvement — feel free to open an issue or submit a pull request.
I would greatly appreciate your feedback and contributions to help me improve the tool and my learning. 🚀