Skip to content
haseebalamPublic

About

CLI tool to check URLs for redirects, phishing, malware & security threats. Powered by Google Safe Browsing.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DrURL

drurl

CLI tool to check URLs for redirects, security threats, and more.

npm version npm downloads license

Check any link for redirects, HTTP status, final destination, phishing, malware, and more — right from your terminal.

🔍 Powered by Google Safe Browsing — the same protection used by Chrome, Firefox & Safari.


📦 Installation

npm install -g drurl-cli

🚀 Usage

# Check a URL
drurl google.com
drurl https://bit.ly/example
drurl "https://example.com/path?query=1"

# Help
drurl --help

# Version
drurl --version

📋 Output Example

🔗 URL Redirection Report
────────────────────────────────────────────────────────────
📎 bit.ly/example

📍 Redirect Chain

↪️  https://bit.ly/example
   301 Moved Permanently ⏱️  125ms

✅ https://example.com
   200 OK ⏱️  89ms

────────────────────────────────────────────────────────────

📊 Summary
   • Redirects: 1
   • Total Time: 214ms
   • Final Status: 200
   • 🔒 HTTPS

🟢 Health: 100/100 Excellent
   ██████████

✅ SAFE — No threats detected
   Advisory by Google Safe Browsing

────────────────────────────────────────────────────────────
📍 Scanned as Chrome 124 from 🇳🇱 Amsterdam
🌐 More details at redirectchecker.com

✨ Features

Feature Description
🔗 Redirect Chain See every hop from start to final destination
🛡️ Security Check Google Safe Browsing detection for malware, phishing, unwanted software
⏱️ Response Times Per-hop and total response times
📊 Health Score 0-100 score based on status codes, redirects, speed, and threats
🔢 Exit Codes 0 = safe, 1 = error, 2 = threat detected (useful for scripts)

🔢 Exit Codes

Code Meaning
0 ✅ Success, URL is safe
1 ❌ Error (network, invalid URL, etc.)
2 🚨 Threat detected (phishing, malware, etc.)

Use in Scripts

drurl suspicious-link.com

if [ $? -eq 2 ]; then
  echo "⚠️ Threat detected!"
fi

🤖 Also Available

Telegram Bot

Check links directly in Telegram: @DrURLbot

Just type @DrURLbot https://example.com in any chat to check a link inline.

Website

Full-featured web interface at RedirectChecker.com


🔌 API

This CLI uses the RedirectChecker.com API.


📄 License

MIT © RedirectChecker.com


🔗 Links

About

CLI tool to check URLs for redirects, phishing, malware & security threats. Powered by Google Safe Browsing.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages