<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>namaza</author_name>
  <author_url>https://blog.hatena.ne.jp/namaza/</author_url>
  <blog_title>雑記</blog_title>
  <blog_url>https://ytrewq.hatenablog.com/</blog_url>
  <categories>
    <anon>セキュスペ</anon>
  </categories>
  <description>preg_match('/example.com/',$url); これは$urlにexample.comが含まれることを確認する正規表現だが、 このように、example.comをファイル名に含むファイルを作っておくことで回避できる。http://wana.com/example.com.php 次に、/dir/test.phpのような、スラッシュで始まるファイルパス参照かどうかを確認する正規表現だが、preg_match ('/^\//',$url); このように、スラッシュを２つ連続させ、ネットワークパス参照と呼ばれる形にすることで、すり抜けてしまう。//wana.com/wana.ph…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytrewq.hatenablog.com%2Fentry%2F2017%2F10%2F03%2F230324&quot; title=&quot;オープンリダイレクタ対策の正規表現によるドメインのチェック - 雑記&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>2017-10-03 23:03:24</published>
  <title>オープンリダイレクタ対策の正規表現によるドメインのチェック</title>
  <type>rich</type>
  <url>https://ytrewq.hatenablog.com/entry/2017/10/03/230324</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
