Secure Wi-Fi Access — Automated MAC Whitelisting, Intruder Blocking & Live Monitoring
Let only registered devices on your Wi-Fi. Scan in real time, auto-compare MACs against a whitelist, and block unknowns instantly via router APIs or OS firewall — with alerts and a clean dashboard.
- ✓Realtime device discovery & vendor identification
- ✓One-click allow/deny; auto-block unknown devices
- ✓Alerts + logs, CSV/SQLite storage, simple GUI
1. Introduction
The Secure Wi-Fi Access with MAC Address Filtering is a Python-based project that enforces device-level access control on your wireless network. It authenticates devices via a registered MAC whitelist, monitors who’s connected, and blocks unknown devices automatically. Perfect for homes and small offices seeking lightweight, effective Wi-Fi hardening.
2. Existing System vs Proposed System
- Manual router setup is complex and error-prone.
- No real-time device visibility → intruders go unnoticed.
- No automation or alerting for unknown devices.
- Automated scans + MAC whitelist enforcement.
- Live device list with vendor/OUI details.
- Auto-block unknowns via router API/SSH or OS firewall.
- Dashboard for add/remove & audit logs.
- Email/desktop alerts for intrusions.
3. Working
- Network Scanning: Periodic ARP/ICMP/port sweeps to enumerate devices.
- Device Identification: Extract MAC/IP and vendor info (OUI).
- Authorization Check: Compare to whitelist in SQLite/CSV.
- Action Execution: Authorized → allow; Unauthorized → block via router/OS.
- User Notification: Email/popup alert on unknown device detection.
- Dashboard View: Real-time tables for Connected / Blocked / Authorized.
4. Technology Stack
- Language: Python
- Libraries: scapy, os, subprocess, time, pandas, Flask/Tkinter
- Networking Tools: arp-scan / Nmap integration
- Database: SQLite3 or CSV (whitelist & logs)
- Optional Integrations: Router API/SSH, SMTP alerts
5. Modules
Find devices fast.
- ARP/Nmap sweeps
- OUI vendor lookup
Whitelist match.
- Exact/regex MAC rules
- Per-device notes
Block/allow.
- Router API/SSH
- OS firewall fallback
Edit whitelist.
- Add/remove MACs
- Bulk import/export
Know instantly.
- Email/popup alerts
- Event history
See everything.
- Connected/Blocked lists
- Charts & filters
6. Advantages
- High-level Wi-Fi control via MAC-based auth.
- Automated monitoring and instant blocking.
- Friendly UI — no router page digging required.
- Cross-platform with router/firewall integrations.
- Prevents hijacking and bandwidth theft.
7. Applications
- Home networks (family devices only).
- Start-ups & small offices.
- Institutions with controlled Wi-Fi access.
- Cyber labs & IoT testbeds with restricted usage.
Python Integration Sketch (Scapy + arp-scan/Nmap + Router/OS)
# 1) Scan network (choose one)
def scan_devices(cidr):
# Option A: scapy ARP ping
ans, _ = scapy.arping(cidr, timeout=2, verbose=0)
devices = [{"ip": rcv.psrc, "mac": rcv.hwsrc} for snd, rcv in ans]
# Option B: call arp-scan/nmap via subprocess and parse output
return enrich_with_vendor(devices) # OUI lookup
# 2) Authorization check
def is_authorized(mac):
return db.whitelist.exists(mac.lower())
# 3) Enforcement
def block_device(mac, ip=None):
if router_api_available():
router.block_mac(mac) # vendor-API/SSH command
else:
os_firewall_block(ip or mac) # platform-specific deny
# 4) Loop
def monitor_loop():
while True:
devices = scan_devices("192.168.1.0/24")
for d in devices:
if not is_authorized(d["mac"]):
alert(f"Unknown device: {d['ip']} {d['mac']}")
block_device(d["mac"], d["ip"])
db.log_event("blocked", d)
time.sleep(SCAN_INTERVAL)
What You Get
| Item | Included | Notes |
|---|---|---|
| Python Source Code | ✅ | Scapy + Flask/Tkinter |
| Scanner Integrations | ✅ | arp-scan / Nmap parsers |
| Whitelist/Blacklist | ✅ | SQLite + CSV import/export |
| Router/OS Blocking | ✅ | API/SSH + firewall scripts |
| Alerts & Logs | ✅ | SMTP or desktop notifications |
| Demo Video | ✅ | Setup & working walkthrough |
| Report & PPT | ✅ | College-format templates |
| Support | ✅ | Installation + viva Q&A (1 month) |
FAQs — Secure Wi-Fi MAC Filtering
Want zero freeloaders on your Wi-Fi?
Get the Secure Wi-Fi MAC Filtering project with code, demo, docs, and support.
WhatsApp Us Now
