A secure Flask-based web application implementing authentication, access control, and cybersecurity best practices
This project demonstrates secure web application development using Flask.
- User Authentication (Login/Register)
- Password Hashing (bcrypt)
- Password Strength Validation
- Brute-force Protection
- Role-Based Access Control (Admin/User)
- CSRF Protection
- Security Logging
- Custom Error Handling
- Python (Flask)
- SQLite
- Flask-Login
- Flask-WTF
- SQLAlchemy
git clone https://github.com/DaniSam-STU/secure-web-application
cd secure-web-application
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python run.pyRun
python make_admin.py
use email that you wants to register as admin
- Implement Two-Factor Authentication (2FA)
- Add Admin Dashboard with analytics
- Store logs in database instead of file
- Add IP tracking for suspicious logins
- Implement account lockout with timeout
- Add password reset via email
- Use JWT for API-based authentication
- Deploy application on cloud (AWS / Render)
- Pull requests are welcome!
- Feel free to fork and improve this project.
- DAani Sam
This project is intended for educational and ethical use only.
If you like this project, give it a ⭐ on GitHub!