Features
- Malware Detection - Identify malicious websites
- Phishing Protection - Detect deceptive sites
- Threat Analysis - Real-time security checks powered by Google Safe Browsing API
- Website Screenshots - Capture any website in real-time
- URL Expansion - Expand shortened links and track redirections
- Redirection Detection - Track and display URL redirects
- Proxified Access - Anonymous browsing through proxy
Demo
Check out the live demo: https://prateek.is-a.dev/SaferWeb/
Screenshots
| Safe URL Detection |
Malicious URL Warning |
 |
 |
Quick Start
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js (v20.0.0 or higher) - Download
- npm or yarn package manager
- Google Safe Browsing API Key - Get API Key
Local Installation
Clone the Repository
git clone https://github.com/prateek-chaubey/SaferWeb.git
cd SaferWeb
Install Dependencies
npm install
Create a .env file in the root directory:
SAFE_BROWSING_API_KEY=your_google_safe_browsing_api_key_here
PORT=3000
Run the Application
Development Mode (with auto-reload):
npm run dev
Production Mode:
npm start
Access the Application
Open your browser and navigate to:
http://localhost:3000
Deployment
Step-by-Step Guide
1. Create a Render Account
2. Create a New Web Service
- Click “New +” → “Web Service”
- Connect your GitHub repository
3. Configure Build Settings
| Setting |
Value |
| Name |
SaferWeb |
| Environment |
Node |
| Build Command |
npm install |
| Start Command |
npm start |
| Plan |
Free |
4. Add Environment Variables
Go to Environment tab and add:
SAFE_BROWSING_API_KEY = your_google_safe_browsing_api_key
5. Deploy
- Click “Create Web Service”
- Wait for deployment to complete (3-5 minutes)
- Your app will be live at
https://your-app-name.onrender.com
API Endpoints
Safety Check
GET /safety?url=https://example.com
Response:
[
"https://example.com",
{
"matches": [
{
"threatType": "MALWARE",
"platformType": "ANY_PLATFORM",
"threat": {
"url": "https://example.com"
}
}
]
}
]
Screenshot Capture
GET /screenshot?page=https://example.com&fullpage=true
Parameters:
page (required) - URL to capture
fullpage (optional) - Capture full page (true/false)
Response: PNG image
Proxified Access
GET /proxy?url=https://example.com
Response: Proxified website content
Technology Stack
| Technology |
Purpose |
 |
Runtime Environment |
 |
Web Framework |
 |
Headless Browser |
 |
Threat Detection |
Made with ❤️ for a Safer Internet
评论