This is a API for checking a URL against the google safe-browsing service.
docker run -d -p 8080:8080 12abcloud/safebrowsing-api
# clean example
curl -d '{"url": "example.com"}' http://localhost:8080/scan
{"clean":true,"tags":"","vendor_link":"","reporter":""}
# phishing example
curl -d '{"url": "http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/UNWANTED_SOFTWARE/URL/"}' http://localhost:8080/scan
{"clean":false,"tags":"UNWANTED_SOFTWARE","vendor_link":"","reporter":""}
| ENV | Default | Description |
|---|---|---|
| DEBUG | true | will enable debug logging |
| API_KEY | XXXXXXXXXXXXX | API KEY for google safebrowsing API |
| API_SCAN_PATH | /scan | Path of the API |
| API_PORT | :8080 | Port the service will listen |
Content type
Image
Digest
Size
9.5 MB
Last updated
over 4 years ago
docker pull 12abcloud/safebrowsing-api