Skip to content

Our project detects scams using AI by analyzing text, URLs, and uploaded files. It identifies risky patterns, highlights suspicious keywords, and provides clear results with visual indicators. A dashboard tracks scan activity and trends, helping users stay safe from online fraud.

Notifications You must be signed in to change notification settings

thorrwho/SafeLink-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SafeLink-AI Deployed Link- https://pngd79pm-5000.inc1.devtunnels.ms/ AI-powered malicious link detection system

SafeLink-AI is a security-focused application designed to detect malicious or unsafe URLs using machine learning. It helps users identify phishing, malware, and suspicious links before interacting with them.

πŸ“Œ Project Overview

Malicious links are a major attack vector for phishing and malware distribution. SafeLink-AI analyzes URLs using a trained ML model and predicts whether a link is safe or malicious.

The project is divided into three independent components:

Frontend – User interface

Backend – API & prediction logic

ML Model – Training and feature extraction

🧠 Key Features

Detects malicious URLs using ML

Clean separation of frontend, backend, and ML logic

Lightweight and modular design

Easy to retrain model with new data

Secure repository (no model files exposed)

πŸ—οΈ Project Structure SafeLink-AI-FullProject β”‚ β”œβ”€β”€ backend/ # API & server-side logic β”œβ”€β”€ frontend/ # User interface β”‚ β”œβ”€β”€ ml-model/ # Machine learning module β”‚ β”œβ”€β”€ train_model.py β”‚ └── requirements.txt β”‚ β”œβ”€β”€ README.md └── .gitignore

βš™οΈ Tech Stack Machine Learning

Python

Scikit-learn

NLP feature extraction

Backend

Python

Flask / FastAPI (based on implementation)

Frontend

HTML / CSS / JavaScript (or React if used)

Tools

Git & GitHub

VS Code

πŸš€ How to Run the Project 1️⃣ Clone the Repository git clone https://github.com/thorrwho/SafeLink-AI.git cd SafeLink-AI-FullProject

2️⃣ Set Up ML Environment cd ml-model pip install -r requirements.txt python train_model.py

Note: Trained model files are intentionally excluded from GitHub for security and size reasons.

3️⃣ Start Backend Server cd backend

Install the npm dependencies (including multer, pdf-parse, tesseract, etc.)

npm install

Start the server

node server.js

### 🌐 3. Frontend Application

The frontend is served directly by the backend. Once the backend is running, you can access the application in your web browser.

1.  **Open your browser** and navigate to:
    [http://localhost:5000](http://localhost:5000)

2.  Use the new tabbed interface to choose your input method: **Text**, **URL**, or **File**.

3.  After a scan, you will be redirected to the redesigned **Results** page with a risk gauge and detailed analysis.

4.  Visit the **Dashboard** (`http://localhost:5000/dashboard.html`) to see the redesigned analytics on all scans performed.

---

πŸ” Security Note

Trained model files (.pkl) are excluded using .gitignore

This prevents accidental exposure of large or sensitive files

Models can be regenerated locally using the training script

πŸŽ“ Academic Use

This project is suitable for:

AI / ML Mini Projects

Cyber Security demonstrations

Full-stack ML applications

Viva and project evaluations

πŸ‘€ Author

Tharini Naveen, Tasheen Khan, Malavika I R
B.Tech – Artificial Intelligence & Machine Learning
Vidyavardhaka College of Engineering

πŸ“œ License

This project is intended for educational purposes only.

About

Our project detects scams using AI by analyzing text, URLs, and uploaded files. It identifies risky patterns, highlights suspicious keywords, and provides clear results with visual indicators. A dashboard tracks scan activity and trends, helping users stay safe from online fraud.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published