KeyGuard is a lightweight content-filtering application built in Python to help enforce safe browsing practices on desktop systems.
It detects and blocks restricted or inappropriate content using rule-based pattern matching on URLs, keywords, and user inputs.
This project demonstrates practical skills in automation, access control, and Python scripting β relevant for IT support, compliance enforcement, and endpoint security operations.
-
URL & Keyword Filtering:
Blocks access to restricted categories based on configurable patterns. -
Automated Content Inspection:
Scans user-entered URLs or search terms to prevent exposure to inappropriate material. -
Customizable Ruleset:
Filtering patterns can be easily modified to suit school, home, or corporate environments. -
Lightweight & Offline:
No external API calls; works entirely through local pattern matching.
- Python 3
- Regular Expressions (Regex)
- File Handling & Pattern Lists
- Basic Access Control Logic
- The user attempts to access a URL or search query.
- KeyGuard checks the string against a list of blocked patterns.
- If matched:
- Access is denied.
- A warning is displayed.
- If clean:
- The request is allowed.
Created as a practical demonstration of:
Content filtering mechanisms
Python automation
Security-oriented logic
Pattern-based detection techniques