[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] php and ip check



Can someone give me a hand please.

I have a client who want a php script that checks for 3 ip addresses. If the ip is in the "OK" list then they move foward to a webpage, if they are not in the "ok" list then i take them to a different web page. so far i found this as a starting point:

<?php

if (trim($REMOTE_ADDR) != "xxx.xx.xx.xx"){
echo "<script>alert(\"Invalid IP Address(You Can't do this).\");history.go(-1)</script>\n";
 exit;
}
?>


can anyone give me a hand please.

Thanks

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus