Quick URL / Link Scanner (Bash)
A lightweight and powerful Bash utility for analyzing URLs and domains. It performs local security checks such as DNS resolution, SSL certificate inspection, WHOIS lookups, and HTTP status verification, while also supporting optional online reputation checks through Google Safe Browsing and VirusTotal APIs.
✅ The script is safe to upload publicly.
It only contains placeholder variables for API keys and does not include any sensitive information or credentials.
Important: Never commit real API keys to GitHub.
- Resolves domains and retrieves IP addresses (
digorhost) - Extracts SSL certificate information (
openssl) - Performs WHOIS lookups
- Retrieves:
- Registrar
- Country
- Creation date
- Expiration date
- Checks website availability and HTTP status codes (
curl)
-
Google Safe Browsing v4
- Detects phishing sites
- Detects malware-hosting domains
-
VirusTotal v3
- URL reputation analysis
- Multi-engine threat detection results
- Linux
- macOS
curl
jq
whois
dig # or host
openssl
grep
sed
awkOnline reputation checks are optional — if no keys are set, those steps simply report no results. To enable them:
- Get a Google Safe Browsing API key from Google Cloud Console
- Get a VirusTotal API key from virustotal.com
- Open
links_scanne.shand replace the two placeholder values at the top of the file:
GOOGLE_API_KEY="YOUR_GOOGLE_API_KEY_HERE"
VIRUSTOTAL_API_KEY="YOUR_VIRUSTOTAL_API_KEY_HERE"Important: Never commit real API keys to GitHub.
sudo apt update
sudo apt install -y curl jq dnsutils whois opensslsudo pacman -S curl jq bind whois opensslbrew install curl jq whois opensslchmod +x links_scanne.sh
./links_scanne.shEnter a URL or domain when prompted.
Example:
https://example.com
- 🌐 DNS Resolution
- 🔒 SSL Certificate Inspection
- 📜 WHOIS Information
- 🚦 HTTP Status Checking
- 🛡️ Google Safe Browsing Integration
- 🔍 VirusTotal Integration
- ⚡ Fast and Lightweight
- 📦 Pure Bash Implementation
- Bash
- curl
- jq
- openssl
- dig / host
- whois
- Google Safe Browsing API
- VirusTotal API
This project is released under the MIT License.
Made with ❤️ by linuxcoding-ADAM

