Guest PcGamerz13 Posted March 6, 2006 Share Posted March 6, 2006 Fixed Link to comment https://forums.phpfreaks.com/topic/4202-ip-help/ Share on other sites More sharing options...
AndyB Posted March 6, 2006 Share Posted March 6, 2006 Depends of your definition of "doesn't work". This might well work, however:[code]$MyIp = "68.144.218.226";$Ip = $_SERVER['REMOTE_ADDR'];if ($MyIp != $Ip){ echo "<center><font face='verdana' size='2'>SITE UNDER CONSTRUCTION</font></center>"; exit();}[/code] Link to comment https://forums.phpfreaks.com/topic/4202-ip-help/#findComment-14604 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.