https://github.com/bnbong/wegis_server
<개인 프로젝트> CNN + BERT multimodal Phishing Detection Server
https://github.com/bnbong/wegis_server
bert cnn fastapi mongodb multimodal pydantic-v2 python redis sqlalchemy sqlmodel
Last synced: about 1 month ago
JSON representation
<개인 프로젝트> CNN + BERT multimodal Phishing Detection Server
- Host: GitHub
- URL: https://github.com/bnbong/wegis_server
- Owner: bnbong
- Created: 2025-09-18T07:27:36.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-10-05T06:47:07.000Z (8 months ago)
- Last Synced: 2025-10-05T08:35:32.658Z (8 months ago)
- Topics: bert, cnn, fastapi, mongodb, multimodal, pydantic-v2, python, redis, sqlalchemy, sqlmodel
- Language: Python
- Homepage:
- Size: 163 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wegis Server
**CNN + BERT multimodal Phishing Detection Server**
[](https://www.python.org/)
[](https://fastapi.tiangolo.com/)
[](https://www.postgresql.org/)
[](https://redis.io/)
[](https://www.mongodb.com/)
_[Wegis](https://github.com/bnbong/Wegis) - A Chrome browser extension's server that provides real-time protection against phishing sites by analyzing all links on web pages users visit._
---
## Features
- **Real-time phishing site detection**: High-precision analysis through CNN + BERT-based AI model
- **Multi-layer caching system**: Fast response times through Redis-based result caching
- **RESTful API**: Extensible web API based on FastAPI
## API Endpoints
### Analyze API
- `POST /analyze/check` - Single URL phishing analysis
- `POST /analyze/batch` - Multiple URL batch analysis (for browser extensions)
- `GET /analyze/recent` - Recent analysis results
### Other API
- `GET /health` - Server status check
- `POST /feedback/*` - User feedback management
more details in live server's [API documentation](http://localhost:8000/docs)
## AI Model structure

## Quick Start
### Development environment setup
```bash
# 1. Development environment setup
make dev-setup
# 2. Environment variable setup (.env file editing)
cp env.example .env
# Edit the .env file to set the necessary settings
# 3. Start the service
make up
# 4. Server access
# API: http://localhost:8000
# Docs: http://localhost:8000/docs
```
### Local Development Commands
```bash
# Manage all services
make up # Start all services
make down # Stop all services
make logs # Check logs
make health # Check service status
# Development only
make db-only # Start only database services
make shell # Server container access
make logs-server # Server log only
# Test environment
make test-up # Start test database
make test # Run all tests
make test-down # Stop test database
# Database management
make migrate # Run migrations
make reset # Delete all data (WARNING: This will delete all data!)
# Testing
make test # Run all tests
make test-up # Start test database
make test-down # Stop test database
make test-logs # Show test environment logs
```