Skip to content

Safer Web is a comprehensive URL security checker that detects malicious URLs, phishing attempts, malware threats, captures website screenshots, expands shortened URLs, and provides proxified access to websites. Built with Express, Puppeteer, and Google Safe Browsing API

License

Notifications You must be signed in to change notification settings

prateek-chaubey/SaferWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protect yourself online with real-time URL security analysis

MIT License Node Version Express.js Puppeteer

FeaturesDemoDeploymentAPI


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
Safe URL Malicious URL

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

Configure Environment Variables

Create a .env file in the root directory:

SAFE_BROWSING_API_KEY=your_google_safe_browsing_api_key_here
PORT=3000

Note

Visit Google Safe Browsing API to obtain your free API key.

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

Deploy to Render.com

Deploy to Render

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
Node.js Runtime Environment
Express Web Framework
Puppeteer Headless Browser
Google Safe Browsing Threat Detection

Made with ❤️ for a Safer Internet

About

Safer Web is a comprehensive URL security checker that detects malicious URLs, phishing attempts, malware threats, captures website screenshots, expands shortened URLs, and provides proxified access to websites. Built with Express, Puppeteer, and Google Safe Browsing API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published