FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

SafeBrowsing

v1.0.2 Public

ColdBox SafeBrowsing Module

A module for testing URLs against the Google SafeBrowsing Lookup v4 API.

LICENSE

Apache License, Version 2.0.

SYSTEM REQUIREMENTS

  • Lucee 5+
  • ColdBox 5.3+

Instructions

Just drop into your modules folder or use the box-cli to install

box install safebrowsing

USAGE

Add your Google API_KEY to the module settings in Coldbox.cfc:

moduleSettings = {
	"safebrowsing":{
		apiKey:"YOUR_API_KEY"
	}
}

The module creates a mapping for [email protected]owsing which has the following methods:

  • checkURLs(required array urls) returns a struct of data from the API describing any issues in the URLs submitted
  • isThreat(required string url) returns true if the URL is problematic for any reason, false if it's "safe"

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
1.0.2 Mar 03 2020 01:28 PM Mar 03 2020 01:28 PM
Version History
1.0.2 Mar 03 2020 01:28 PM Mar 03 2020 01:28 PM
1.0.1 Feb 27 2020 02:33 PM Feb 27 2020 02:33 PM
1.0.0+0001 Feb 27 2020 02:17 PM Feb 27 2020 02:17 PM

 

$ box install safebrowsing

No collaborators yet.
   
  • Feb 27 2020 02:17 PM
  • Mar 03 2020 01:28 PM
  • 182
  • 0
  • 430