웹마스터 팁

아이피를 숨겨보자

2004.01.23 19:41

SeePaGae

-_-;;; 이걸 이용하여 DB에서 추출한뒤 치환 과정을 거치면.. 123.123.123.xxxx
이런식으로 할수 있다죠.. -_-;
지금 피곤한관계로.. --_;; 후딱 쓰겟습니다

function ReplaceIP($ip_adress){
if(!$ip_adress) message("ReplaceIP 쪽에.. 값이 없네..-_-;;;");
$ip=@explode(".",$ip_adress);
$ip[3]="???"; //4번쨰 자리를 치환한다.
$ip=$ip[0].".".$ip[1].".".$ip[2].".".$ip[3];
return $ip;
}
//////////////////////////////////
function message($message){
echo $message;
exit;
}

수정합니다.. -_-;;;; 귀차니즘으로인해.. PHP 태스트를 안하고있습니다.. 죄송합니다.. -_-;;