Guest PcGamerz13 Posted March 6, 2006 Share Posted March 6, 2006 Fixed Quote 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] Quote Link to comment https://forums.phpfreaks.com/topic/4202-ip-help/#findComment-14604 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.