hello i want help to design a script for banning ip's and also range of ip's....
Hope that somebody may come out with a solution to do this ....

Check the code....

<?php

   $ip = $_SERVER['REMOTE_ADDR'];
echo $ip;
   if($ip >= "00.00.00.00" && $ip <="127.0.0.1"){
      echo "<font color='red'>Ooops, your ip address has been banned from this website.</font>";
      exit();
   }

 ?>

Hopefully it was useful...

PS-If your problem is solved...mark the thread as solved...

commented: nice work done tomato.pgn!!!it worked fine!!! +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.