Upgrade to Pro — share decks privately, control downloads, hide ads and more …

徳丸本輪読会

mcz9mm
July 30, 2017
66

 徳丸本輪読会

第二回4.5

mcz9mm

July 30, 2017
Tweet

Transcript

  1. RefererͷνΣοΫ /* ࢀরݩʹΑͬͯৼΓ෼͚ॲཧ */ $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] :

    null; if (preg_match("|^https?://[a-zA-Z0-9-]+\.hoge\.jp|", $referer)) { // "xxx.hoge.jp" αΠτ಺͔ΒͷΞΫηε࣌ͷॲཧɻ
 } else {
 /* ௚઀ΞΫηε࣌ͷॲཧ */
 }
  2. End