I Need A Ban Script Please Somebody Can Provide Me

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • I Need A Ban Script Please Somebody Can Provide Me

    there is a chat script by ghost brother which is Mobile Chat V2.0.2 can please somebody make a mod or addon for banning the brower like in my country alsomost every mobile companies give just 1 or 2 ips so same ips for every users to ip can not be ban is there any way if ban someone he can't register again only that perticular user not any other users can sombody please help me on that thank you.

  • #2
    use toddy's ban script

    Comment


    • #3
      is that ban script will ban the ip or ban the brower bcz from 1 ip so many users connect because they don't have any unique ip so if ip will be banned then then no one can chat. so i need a script that will only ban that perticular user and that user can't register again also no one else will be banned on that shared ips.

      Comment


      • #4
        please provide me a ban script with brower banning please please please i really inneed of that

        Comment


        • #5
          Code:
          <?php
          $ip = getenv(&#39;REMOTE_ADDR&#39;);
          $blocked = "xx.xx.xx.xx"; // Replace the x&#39;s with the IP address.
          
          if (ereg($blocked,$ip))
          {
          echo "You Have Been Banned";
          exit();
          }
          ?>

          Comment


          • #6
            Code:
            <?php
             $ip = getenv(&#39;REMOTE_ADDR&#39;);
             $blocked = "xx.xx.xx.xx"; // Replace the x&#39;s with the IP address.
             
             if (ereg($blocked,$ip))
             {
             echo "You Have Been Banned";
             exit();
             }
             ?>
            [/b]
            Only problem with that is if someone is using the o2 network and they block one ip address, all the people with that ip address would be banned...

            same with any network IP...

            thats the bad part with IP banning scripts..

            Comment


            • #7
              you use this

              Code:
              $brw = getenv(&#39;HTTP_USER_AGENT&#39;);
              
              // To block phones or any browser use blocked to add a new line $blocked = " WHAT PHONE TYPE! ";
              $blocked = "Opera"; 
              
              
              if (ereg($blocked,$brw ))
              {
              echo "You Have Been Banned";
              exit();
              }
              Or send them some where else !

              Code:
              $brw = getenv(&#39;HTTP_USER_AGENT&#39;);
              
              // To block phones or any browser use blocked to add a new line $blocked = " WHAT PHONE TYPE! ";
              $blocked = "Opera"; 
              
              
              if (ereg($blocked,$brw ))
              {
              header("Location: http://free.com");
              exit();
              }

              Comment


              • #8
                ok thank you guys let me try this

                Comment


                • #9
                  brother you just rock i am giving you a 10000000000000000000 thanks you really helped me a lot thanks a lot thanks a lot

                  Comment


                  • #10
                    Your Welcome mate

                    Comment

                    Working...
                    X