{"image_url":null,"author_url":"https://blog.hatena.ne.jp/sonota88/","width":"100%","blog_url":"https://memo88.hatenablog.com/","provider_url":"https://hatena.blog","published":"2015-11-08 12:17:02","provider_name":"Hatena Blog","height":"190","categories":["Ruby","WEBrick"],"blog_title":"memo486","description":"\u30ed\u30fc\u30ab\u30eb\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30d5\u30a1\u30a4\u30eb\u3092HTTP\u3067\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\uff08Ruby/WEBrick\uff09 \u2191\u3053\u308c\u306b\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u4ed8\u3051\u305f\u3044\u3002 #!/usr/bin/env ruby require \"webrick\" def hostname_allowed?(hostname) /^allowed_hostname_pattern$/ =~ hostname end def address_allowed?(address) /^127\\.0\\.0\\.1$/ =~ address \\ || /^192\\.168\\..+/ =~ address end # ------------------------\u2026","url":"https://memo88.hatenablog.com/entry/20151108/1446952622","version":"1.0","author_name":"sonota88","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F20151108%2F1446952622\" title=\" WEBrick\u3067\u30d5\u30a1\u30a4\u30eb\u516c\u958b\uff0bIP\u30a2\u30c9\u30ec\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650 - memo486\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" WEBrick\u3067\u30d5\u30a1\u30a4\u30eb\u516c\u958b\uff0bIP\u30a2\u30c9\u30ec\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650","type":"rich"}