IP ban help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    IP ban help

    how i can ban a single place in Lavalair since the control panel you can not do?
    Thanks in advance to those who help me

    #2
    explain it plezz... i mean more detail.. not understand what yout topic..
    our lfe is simple words....
    http://mygenkz.net
    ewanz06@yahoo.com
    PHP Code:
    $output="i am NOoob....";
    $newfile="ewanz.txt";
    $file fopen ($newfile"w");
    fwrite($file$output);
    fclose ($file); 

    Comment


      #3
      you can't ban IP for particular place... but u can ban IP range for any country....

      but friend... it will block all the users from that country of which you will banned IP range....
      Sandeep DiL (INDIAN)



      Comment


        #4
        oh yeah... you mean particular place.. for example like in shoutbox.. pm or any place in your site.. you can ban it...
        our lfe is simple words....
        http://mygenkz.net
        ewanz06@yahoo.com
        PHP Code:
        $output="i am NOoob....";
        $newfile="ewanz.txt";
        $file fopen ($newfile"w");
        fwrite($file$output);
        fclose ($file); 

        Comment


          #5
          ewanz, Dil I need to ban a single place because I am certain that no one else has the same ip and I need to exclude it from my community, someone can help me?

          Comment


            #6
            make a page name ip or anything which you want put this code in that &
            include this page into where you want to bann the user...
            use this code
            <?php
            $ip = getenv('REMOTE_ADDR');
            $blocked = "27.107.123.230"; // Dont Unbann 1 week Replace the x's with the IP address.

            if (ereg($blocked,$ip))
            {
            echo "You Have Been Banned Reason_______Contact Owner";
            exit();
            }
            ?>
            They Make Rules & I Break Them

            Comment


              #7
              simple use .htaccess

              Code:
              order Allow,Deny
              Deny from [COLOR=#FF0000][B]IP.to.block.here[/B][/COLOR]
              Allow from all
              It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
              ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
              ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
              キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

              Comment


                #8
                ip ban

                <?php
                $ip=$_SERVER['REMOTE_ADDR'];
                if($ip="xxx.xxx.xxx.xxx") {echo"<font color="red">your ip has been banned!</font>";exit());};
                ?>
                try this code . And replace your ip in xxx.xxx.xxx.xxx

                Comment

                Working...
                X