dezkit Posted March 26, 2008 Share Posted March 26, 2008 how do i put the ipaddress of the person in the comment, where it says (ip) <?php $banned_ip = array(); $banned_ip[] = 'xx.xxx.xx.xxx'; foreach($banned_ip as $banned) { $ip = $_SERVER['REMOTE_ADDR']; if($ip == $banned){ echo "<br><br><br><br><br><br><br><br><center><font size='+2'>You have been banned from this site.</font><br>For further information about your ban, please email us at webmaster@xxx.com and remember to include your IP Address<br><br>Your IP Address is (ip)"; exit(); } } ?> Quote Link to comment Share on other sites More sharing options...
rofl90 Posted March 26, 2008 Share Posted March 26, 2008 echo $_SERVER['REMOTE_ADDR']; Quote Link to comment Share on other sites More sharing options...
dezkit Posted March 26, 2008 Author Share Posted March 26, 2008 can you put in the code, i sux lol, thanks. Quote Link to comment Share on other sites More sharing options...
dezkit Posted March 26, 2008 Author Share Posted March 26, 2008 nevermind, i got it thanks Quote Link to comment 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.