Very basic IP banning script

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
datwig
-


Joined: 26 Jan 2003
Posts: 85

PostPosted: Fri Feb 28, 2003 7:29 am    Post subject: Very basic IP banning script Reply with quote

This is a script that I took form www.pscode.com
Code:
<?
$IP="216.9.0.110";
// Change $IP To the IP to ban...
if($HTTP_SERVER_VARS["REMOTE_ADDR"]==$IP):
$GoAway = "Go away, You are banned from viewing this site!";
echo $GoAway;
endif;
?>

Well, there's an easy script for IP banning! ( I dunno how to edit it so that you can ban multiple IP's)
Back to top View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group