리퍼러 체크의 올바른 방법
{
echo "<script>alert('반사~');history.go(-1);</script>";
exit;
}
{
echo "<script>alert('반사~');history.go(-1);</script>";
exit;
\"; exit;}\r\n이렇게 합니다만 보안을 위해서라면 \r\n \r\n if(!eregi(getenv(\"HTTP_HOST\"),getenv(\"HTTP_REFERER\"))) { echo \"\"; exit;\r\ngetenv함수로 하는게 좋습니다 ","url":"https://sir.kr/boards/program/15064","author":{"@type":"Person","name":"선택이란","url":"https://sir.kr/profile/8941abfb-def4-4de7-9556-19f682a46677"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"datePublished":"2011-11-30T13:05:11+09:00","dateModified":"2011-12-04T01:38:28+09:00","comment":[{"@type":"Comment","text":"이 것도 안 좋을까요?\r\nif(!eregi($_SERVER[HTTP_HOST],$_SERVER[HTTP_REFERER]))","author":{"@type":"Person","name":"운바라기"},"datePublished":"2011-12-01T14:53:08+09:00"},{"@type":"Comment","text":"좋은팁 감사합니다.","author":{"@type":"Person","name":"범범"},"datePublished":"2011-12-04T01:38:28+09:00"}]}
댓글 2개
if(!eregi($_SERVER[HTTP_HOST],$_SERVER[HTTP_REFERER]))