All pastes #1009852 Raw Edit

Anonymous

public php v1 · immutable
#1009852 ·published 2008-05-06 22:41 UTC
rendered paste body
<?php$banip = array('127.0.0.1','127.0.0.2','?27.0.0.3');$ip = $_SERVER['REMOTE_ADDR'];for($i=0;$i<3;$i++){if($ip == $banip[$i]) {echo "You are currently banned from this website, sorry!";exit();} else {echo "no match";}}?>