- Automatic collection and analysis of all links on web pages
- Real-time phishing site verification through Wegis Server API
- Blocking dangerous link access with warning notifications
- Special protection for file download links (PDF, etc.)
- Real-time link monitoring and pre-loading prevention
- Manifest Version: 3
- Languages: JavaScript (ES2022), HTML5, CSS3
- API: Wegis Server API
- Permissions: activeTab, declarativeNetRequest, storage, host permissions
- External Libraries: jsQR (QR code decoding)
Base URL:
https://api.bnbong.xyz/api/v1/wegis-server/
Endpoints:
- POST
/analyze/check— Single URL phishing analysis - POST
/analyze/batch— Multiple URL batch analysis (for browser extensions) - GET
/analyze/recent— Recent analysis results - GET
/health— Server status check - POST
/feedback/*— User feedback management
Wegis/
├── manifest.json
├── background/
│ └── service-worker.js
├── content/
│ ├── content-script.js
│ └── link-collector.js
├── popup/
│ ├── popup.html
│ ├── popup.js
│ └── popup.css
├── options/
│ ├── options.html
│ ├── options.js
│ └── options.css
├── lib/
│ └── jsqr.min.js
├── icons/
│ ├── icon16.png
│ ├── icon48.png
│ └── icon128.png
└── README.md
- CSP (Content Security Policy) compliance
- Principle of least privilege application
- User data protection
- API key security management
- HTTPS communication enforcement
- Node.js (v18.0.0 or higher)
- npm or yarn
- Git
-
Clone the repository
git clone https://github.com/bnbong/Wegis.git cd Wegis -
Install dependencies
npm install
-
Install pre-commit hooks
# Install pre-commit (if not already installed) pip install pre-commit # Install the hooks pre-commit install
- ESLint: JavaScript linting
- Stylelint: CSS linting
- Prettier: Code formatting
- Pre-commit hooks: Automated checks before commits
Please refer to INSTALL.md for detailed installation instructions.