ClamScan is a Chrome extension that allows users to scan files and URLs for viruses using the ClamScan backend API. All scanning is handled directly in the popup window. Users can upload files, paste URLs, or right-click on links to prepare a scan.
- Scan local files (up to 10 MB) for viruses.
- Scan any URL for potential threats.
- Right-click context menu to quickly prepare a scan for a link.
- Popup interface to show scan results: filename, file type, virus name, file size, scan time, and raw response.
- No injection of UI into web pages β everything runs in the popup.
- Clone or download this repository.
- Open Chrome and navigate to
chrome://extensions/
. - Enable Developer mode.
- Click Load unpacked and select the project folder.
- The ClamScan icon should appear in your Chrome toolbar.
- Click the ClamScan icon in the Chrome toolbar.
- Drag & drop a file into the popup or click to select a file.
- Wait for the scan to complete. The results will appear in the popup.
- Click the ClamScan icon.
- Paste a URL in the input field in the popup.
- Click Scan URL.
- Results will appear once the scan is complete.
- Right-click any link in Chrome.
- Select Scan with ClamScan from the context menu.
- Click the ClamScan icon to open the popup.
- The popup will automatically scan the previously selected link.
clamScan/
ββ background.js
ββ popup.js
ββ popup.html
ββ icons/
β ββ icon16.png
β ββ icon32.png
β ββ icon48.png
β ββ icon128.png
ββ manifest.json
ββ README.md
contextMenus
β add a right-click menu to scan links.activeTab
β access the currently active tab.scripting
β optional if you previously injected scripts (no longer needed for popup-only).storage
β store URLs temporarily between right-click and popup.
ClamScan uses a backend API for scanning:
- File scan: POST file as
multipart/form-data
. - URL scan: POST URL as
application/x-www-form-urlencoded
.
Make sure your backend API is accessible at https://api.clamscan.com/api/v1/scans
or adjust background.js
accordingly.
MIT License
Dev by Briac DELAIGUE