Socket
Book a DemoInstallSign in
Socket

project-honeypot2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

project-honeypot2

0.1.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

= Project Honeypot

Project Honeypot is a programmatic interface to the Project Honeypot HTTP:BL service for identifying suspicious ip addresses. This Gem was built to filter out spammers on http://www.tweetburner.com.

It is a handy thing to be able to identify spammers, harvesters, and other suspicious IP addresses if you're worried about who might be abusing your service.

= Requirements

This Gem requires that you have an Http:BL API key from Project Honeypot. You can get one at http://www.projecthoneypot.org/

= Usage

Add 'project-honeypot2' to your Gemfile.

HTTP:BL lookups through Project Honeypot result in a Url object that gives you the risk score, last activity, and types of offenses the ip address is listed for.

The score is worse the higher it is and the last_activity is in days.

== Example #1: Suspicious IP Address

Given an api key of "abcdefghijkl"

@listing = ProjectHoneypot.lookup("abcdefghijkl", "192.168.1.1") @listing.safe?

=> false

@listing.ip_address

=> "192.168.1.1"

@listing.score

=> 63

@listing.last_activity

=> 1

@listing.offenses

=> [:comment_spammer, :suspicious]

@listing.comment_spammer?

=> true

@listing.suspicious?

=> true

@listing.harvester?

=> false

== Example #2: Safe IP Address

@listing = ProjectHoneypot.lookup("abcdefghijkl", "192.168.1.1") @listing.safe?

=> true

@listing.ip_address

=> "192.168.1.1"

@listing.score

=> 0

@listing.last_activity

=> nil

@listing.offenses

=> []

@listing.comment_spammer?

=> false

@listing.suspicious?

=> false

@listing.harvester?

=> false

= To Do Items

  • Cache Responses from Project Honeypot
  • Allow 'safe?' to be configurable (algorithm based on recency and severity(score))
  • A .yml config file

FAQs

Package last updated on 21 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.