<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rochefort</author_name>
  <author_url>https://blog.hatena.ne.jp/rochefort/</author_url>
  <blog_title>rochefort's blog</blog_title>
  <blog_url>https://rochefort.hatenablog.com/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>認証機能にIPアドレス制限かけたいだけなので、いかようにもできそうですが、 オシャレに実装する方法はないかと調べてみると、以下の実装がありました。 routesのconstraints 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…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frochefort.hatenablog.com%2Fentry%2Fdevise_with_ip_restriction&quot; title=&quot;deviseの認証機能にIPアドレス制限をかける - rochefort&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-09-03 06:24:40</published>
  <title>deviseの認証機能にIPアドレス制限をかける</title>
  <type>rich</type>
  <url>https://rochefort.hatenablog.com/entry/devise_with_ip_restriction</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
