to block browsers

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

    to block browsers

    friends plz post all the proxy sites and emulater that you know so that i can block users using fake id in my site i use block php
    PHP Code:
    <?php

    $mobile 
    "blocked2.php";
    $text $_SERVER['HTTP_USER_AGENT'];
    $var[0] = 'Nokia6233';
    $var[1] = 'Nokia6233';
    $var[2] = 'anonymouse.org';
    $var[3] = 'Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; Series 60';
    $var[4] = 'http://www.verkata.com';

    $result count($var);

    for (
    $i=0;$i<$result;$i++)
    {
    $ausg stristr($text$var[$i]);
    if(
    strlen($ausg)>0)
    {
    header("location: $mobile");
    echo 
    '<BR>java/opera mini browser detected<BR>';
    break;
    }

    }
    ?>

    #2
    if your going to block proxies ip`s you may want to add them in a database rather than hard code them as your list is going to be sooooooooooooooooooooooooooooooooooo long lol

    Just to give you an idea of how long this list will be.... i know about 5000 working online url proxy sites
    Last edited by metulj; 28.05.10, 16:31.

    Comment


      #3
      The best thing to do will be to allow certain ips and user agents...
      example
      PHP Code:
      <?php if(allowed($ip && $agent)) //allowed is not a php function you have to make it :-P
      {
      echo 
      "Welcome!";
      }
      else
      {
      echo 
      "You are not allowed to access this site GTFO";
      exit();
      }
      ?>
      or may i suggest ip ranges
      Last edited by kevk3v; 28.05.10, 16:22.
      Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

      Comment


        #4
        .....lol if you have th list of proxy ... ir ip range or agents ... share it ... if you like ... hope you will do lol :p

        Comment


          #5
          google it dude there are thousands of proxies not possible to list em all fa you.

          Comment

          Working...
          X