Redirect Banned Ip/browsers

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

    Redirect Banned Ip/browsers

    who have the coding for redirect banned ips/browser to a another place

    #2
    add this in ipban.php

    Code:
    <?php
    
    // IP AND BROWSER BAN
    
    $browser = explode (&#39;/&#39;, $HTTP_USER_AGENT);
    if($REMOTE_ADDR=="USERS IP" AND $browser[0]=="USERS BROWSER"){
    header (&#39;Location: yourbanned.php&#39;);}
    
    // BROWSER BAN
    
    $browser = explode (&#39;/&#39;, $HTTP_USER_AGENT);
    if($browser[0]=="USERS BROWSER"){
    header (&#39;Location: yourbanned.php&#39;);}
    
    
    ?>
    8th wonder of the world

    Comment


      #3
      Here is a simple code
      Code:
      $IP_BROWSER="$REMOTE_ADDR$HTTP_USER_AGENT";  //IP/BROWSER
      $Banned1="12.31.432.34Nokia_bla_bla_bla";
      $Banned2="190.34.23.45Samsung_i_dont_like_this_phones";
      if ($IP_BROWSER==$Banned1||
      $IP_BROWSER==$Banned2)
      header("Location: http://2wap.org/forums/index.php");
      Advertise your mobile site for FREE with AdTwirl

      Comment


        #4
        now put the following on all your pages

        Code:
        <? include("ipban.php"); ?>
        Here is a simple code[/b]
        mine is better

        8th wonder of the world

        Comment


          #5
          now put the following on all your pages

          Code:
          <? include("ipban.php"); ?>
          mine is better

          [/b]
          i use the harstyle script

          Comment


            #6
            They both not good, becouse GPRS providers IP is same for all users and if you ban that ip with mobile model all with this same info will be banned, many unwanted to

            Comment


              #7
              They both not good, becouse GPRS providers IP is same for all users and if you ban that ip with mobile model all with this same info will be banned, many unwanted to [/b]
              Not every user has the same phone software installed even if they have same phone models
              Advertise your mobile site for FREE with AdTwirl

              Comment


                #8
                Not every user has the same phone software installed even if they have same phone models[/b]
                Too big risk to ban someone else what not needed to be :/
                Best was that if we could ban be IMEI or SIM card info but that is inposible

                Comment


                  #9
                  Too big risk to ban someone else what not needed to be :/
                  Best was that if we could ban be IMEI or SIM card info but that is inposible[/b]
                  But if someone is causing to much troubles on your site you have to use this bann even ifit would ban others, but the most members are safe
                  Advertise your mobile site for FREE with AdTwirl

                  Comment

                  Working...
                  X