こんにちは。スマートバンクでソフトウェアエンジニアをしております @moznion です。 表題の通り、action_ip_filterというgemを公開いたしましたのでそのご報告です。 これは何 / モチベーション Ruby on RailsのController内の個別のactionに対し、アクセス元IPアドレスによるアクセス制限を課すことができるgemです。 例えば以下のように使うことができます: class AdminController < ApplicationController include ActionIpFilter::IpFilterable filter_ip "192.0.2.0/24", "198.51.100.1", only: [:index, :show] def index # `192.0.2.0/24` あるいは `198.51.100.1` から