This npm module will allow you to query and consume the Project Honeypot API. Query it with an IP, and a simple JSON object will be sent back with relevent metadata regarding that IP.
npm install project-honeypot
- Register for an account at Project Honeypot.
- Enable API access and receive an access key.
- Use this code:
var honeypot = 'YOUR-ACCESS-KEY';honeypot;
Callback signature is
(err, payload), and follows the following format:
- If the IP address not found,
trueand shows follows this format:
Note: Certain ip addresses in the
127.*.*.* range are test addresses,
127.1.1.5 being one of them. It returns a result record corresponding to a IP address flagged as both "suspicious" and "comment spammer". View the full list here.