Sign inSign up

12abcloud/safebrowsing-api

By 12abcloud

Updated over 4 years ago

Image
0

1.4K

12abcloud/safebrowsing-api repository overview

safebrowsing

Build Status

This is a API for checking a URL against the google safe-browsing service.

run the image

docker run -d -p 8080:8080 12abcloud/safebrowsing-api

call the 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":""}

config ENVs

ENVDefaultDescription
DEBUGtruewill enable debug logging
API_KEYXXXXXXXXXXXXXAPI KEY for google safebrowsing API
API_SCAN_PATH/scanPath of the API
API_PORT:8080Port the service will listen

Tag summary

Content type

Image

Digest

Size

9.5 MB

Last updated

over 4 years ago

docker pull 12abcloud/safebrowsing-api