{"id":20122862,"url":"https://github.com/freaky/ruby-libblacklist","last_synced_at":"2026-05-10T01:40:25.836Z","repository":{"id":142942556,"uuid":"92682047","full_name":"Freaky/ruby-libblacklist","owner":"Freaky","description":"A Ruby interface to libblacklist","archived":false,"fork":false,"pushed_at":"2017-06-16T02:37:40.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T20:30:48.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freaky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-28T19:21:12.000Z","updated_at":"2017-05-28T19:21:23.000Z","dependencies_parsed_at":"2023-04-07T07:01:15.245Z","dependency_job_id":null,"html_url":"https://github.com/Freaky/ruby-libblacklist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Freaky/ruby-libblacklist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fruby-libblacklist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fruby-libblacklist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fruby-libblacklist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fruby-libblacklist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freaky","download_url":"https://codeload.github.com/Freaky/ruby-libblacklist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fruby-libblacklist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27333870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-29T02:00:06.589Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T19:41:33.398Z","updated_at":"2025-11-29T04:03:52.026Z","avatar_url":"https://github.com/Freaky.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Libblacklist\n\nA Ruby interface to NetBSD/FreeBSD's [libblacklist][1], a library for interacting\nwith [blacklistd][2] - a daemon for blocking abusive clients from servers.\n\nCurrently considered EXPERIMENTAL.  Beware of dog, slippery when wet, avoid contact with eyes.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'libblacklist', git: 'https://github.com/Freaky/ruby-libblacklist'\n```\n\nAnd then execute:\n\n    $ bundle\n\n\n## Usage\n\nThe basic premise is something along the lines of:\n\n```ruby\nblacklist = BlacklistD.new\nserver = TCPServer.new(...)\n\nloop do\n  begin\n    client = server.accept\n    if authenticate(client)\n      blacklist.auth_ok(client)\n    else\n      blacklist.auth_fail(client)\n    end\n\n    # ...\n  rescue DidSomethingNaughtyError\n    blacklist.abusive(client)\n  end\nend\n```\n\nblacklistd will then apply the configured rules for the server to determine whether\nthe client should be blocked by the system firewall.\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Freaky/ruby-libblacklist.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n[1]: https://www.freebsd.org/cgi/man.cgi?query=libblacklist\u0026sektion=3\u0026manpath=freebsd-release-ports\n[2]: https://www.freebsd.org/cgi/man.cgi?query=blacklistd\u0026sektion=8\u0026manpath=freebsd-release-ports\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fruby-libblacklist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreaky%2Fruby-libblacklist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fruby-libblacklist/lists"}