{"title":"devise\u306e\u8a8d\u8a3c\u6a5f\u80fd\u306bIP\u30a2\u30c9\u30ec\u30b9\u5236\u9650\u3092\u304b\u3051\u308b","url":"https://rochefort.hatenablog.com/entry/devise_with_ip_restriction","description":"\u8a8d\u8a3c\u6a5f\u80fd\u306bIP\u30a2\u30c9\u30ec\u30b9\u5236\u9650\u304b\u3051\u305f\u3044\u3060\u3051\u306a\u306e\u3067\u3001\u3044\u304b\u3088\u3046\u306b\u3082\u3067\u304d\u305d\u3046\u3067\u3059\u304c\u3001 \u30aa\u30b7\u30e3\u30ec\u306b\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306f\u306a\u3044\u304b\u3068\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u5b9f\u88c5\u304c\u3042\u308a\u307e\u3057\u305f\u3002 routes\u306econstraints ruby on rails 3 - How can I restrict access ActiveAdmin login page by ip? - Stack Overflow class WhitelistConstraint def initialize @ips = Whitelist.retrieve_ips end def matches?(request) @ips.include?(reque\u2026","categories":["rails"],"version":"1.0","author_url":"https://blog.hatena.ne.jp/rochefort/","blog_title":"rochefort's blog","provider_name":"Hatena Blog","width":"100%","type":"rich","provider_url":"https://hatena.blog","image_url":null,"author_name":"rochefort","blog_url":"https://rochefort.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frochefort.hatenablog.com%2Fentry%2Fdevise_with_ip_restriction\" title=\"devise\u306e\u8a8d\u8a3c\u6a5f\u80fd\u306bIP\u30a2\u30c9\u30ec\u30b9\u5236\u9650\u3092\u304b\u3051\u308b - rochefort&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2024-09-03 06:24:40","height":"190"}