Dont Ban Myself

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

    Dont Ban Myself

    ok lets say i use opera, and sum1 else also uses opera

    now in my chat i got incldue ipban.php everywhere

    and then this code

    Code:
    $browser = explode ('/', $HTTP_USER_AGENT);
    if($browser[0]=="Opera"){
    header ('Location: yourbanned.php');}
    how do i stop myself from being browser banned if only want to browser sum1 else excpet me ?
    8th wonder of the world

    #2
    hmmm....a round case...
    maybe u should add..
    Code:
    <?
    $yourip="";
    $browser = explode (&#39;/&#39;, $HTTP_USER_AGENT);
    $ip=$REMOTE_ADDR;
    if($browser[0]=="Opera"&&$ip!==$yourip){
    header (&#39;Location: yourbanned.php&#39;);}
    ?>
    Maybe this will help you.
    But its not safe at all !!
    cuz if someone else has the MATCHING ip of urs,
    he can not b banned.

    So we&#39;hav to try some thing else , with passwords.

    Comment


      #3
      what do u mean

      Comment


        #4
        naveen maybe something like

        if $nini = "djdance"..... etc ?

        oh but i dont want to ipban, only browser ban
        8th wonder of the world

        Comment


          #5
          ye...u can use that. But remember , dun use passwords , cuz if somehas the same password , they too r banned. I said passwords by mistake.

          Comment


            #6
            ok but whats the code ???

            then i can make it even more powerfull by adding ip and browser ban, and like a shield for users then with same browsers and ip

            i know how to ban ip and browser but then i ban everyone using the same, thats why i want to exclude users with the same details
            8th wonder of the world

            Comment


              #7
              But which the username variable??
              The one which stores the username.

              Then we can ban using a boolean.

              Comment


                #8
                its flatfile script, it get saved it nims.txt
                8th wonder of the world

                Comment


                  #9
                  Is $nini an username variable?

                  Comment


                    #10
                    nimi = nickname... it just other language
                    8th wonder of the world

                    Comment


                      #11
                      you mean mobiilichat script,bro just add like this IN TOP
                      you can change $your_browser and $browser2 to $browser if want to ban all Opera
                      $browser = explode (&#39;/&#39;, $HTTP_USER_AGENT);
                      $browser2 =$HTTP_USER_AGENT;
                      $ip ="127.0.0.1";
                      $your_browser = "Opera/8.51 (Windows NT 5.1; U; en)";
                      if ($REMOTE_ADDR =="$ip" AND $browser2 =="$your_browser" AND $nick !="wapkralj"){
                      echo "<wml>";
                      echo "<card title=\"ban\" ontimer=\"http://wapforum.org.uk\">"; //send him here to we handle him
                      echo "<timer value=\"10\"/>";
                      echo "

                      ";
                      echo "Ban hahhaha";
                      echo "</p>";
                      echo "</card>";
                      echo "</wml>";
                      exit();
                      }

                      Comment


                        #12
                        yeah...u can try that code.....

                        Comment


                          #13
                          i tried works just fine just replace with yours infos

                          Comment


                            #14
                            Man Banning in WAP world is very, very not confartable. Why can we get IMEI number with PHP. It&#39;s realy sh**

                            Comment


                              #15
                              yes bro,it would be much easier,or to everybody has different Ip

                              Comment

                              Working...
                              X