php 필터링의 맹점

if(isset($row['id'])){
   if($id=='guest' || $id=='blueh4g'){
    echo "your account is blocked";
   }else{
    echo "login ok"."<br />";
    echo "Password : ".$key;
   }
  }else{
   echo "wrong..";
  }

코드에서 if문을 통해 필터링을 거치는데
php는 대/소문자 구분 없이 필터링이 된다고 한다
즉 guset나 blueh4g중 하나만 대문자로 바꿔서 입력하면
같은 의미의 문자인데 다른 문자열로 처리되어 필터링이 된다


image