block specific browser/phone

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

  • pichiriche
    replied
    use this function for make ID

    PHP Code:
    function red()
      {
      if (isset ($_SERVER ['HTTP_X_NETWORK_INFO'])) 
      { 
      $str1 = $_SERVER['HTTP_X_NETWORK_INFO']; 
      $getstr1 = preg_replace('/(.*,)( 11 [d ])(,.*)/ i','',$str1); 
      return md5($getstr1); 
            } 
      elseif (isset ($_SERVER['HTTP_X_UP_CALLING_LINE_ID'])) 
      { 
      $getstr2 = $_SERVER['HTTP_X_UP_CALLING_LINE_ID']; 
      return md5($getstr2); 
            }
            elseif (isset ($_SERVER['HTTP_X_NX_CLID'])) 
            {
                $get4 = $_SERVER['HTTP_X_NX_CLID']; 
          return md5($get4); 
            }
      elseif (isset($_SERVER[ 'HTTP_X_UP_SUBNO'])) 
      { 
      $str3 = $_SERVER[ 'HTTP_X_UP_SUBNO']; 
      $getstr3 = preg_replace ('/(.*)( 11 [d ])(.*)/ i','',$str3); 
      return md5($getstr3); 
            } 
      elseif (isset($_SERVER['DEVICEID'])) 
      { 
      return md5($_SERVER['DEVICEID']); 
            } 
      else
      { 
            $output = 'Not phone or device ID detected.'; 
            return $output;
            } 
            } 
    
    Last edited by metulj; 26.07.11, 21:14. Reason: it looks much better when in [ php ] tag [ / php ]

    Leave a comment:


  • arnage
    replied
    Anshul has posted snippet for that and plus there is many studies about it on the net.
    check-isdn

    Leave a comment:


  • khan
    replied
    Originally posted by metulj View Post
    well.. it is one way... but it'll work only on unsecured networks...
    but i guess all indian networks are still unsecure...
    Not all indian networks. only one of them, that is bsnl. in Bangladesh only unsecure network is Robi. I dont know about others.

    Leave a comment:


  • metulj
    replied
    Originally posted by something else View Post
    you can try using $_SERVER['HTTP_X_NETWORK_INFO'] as some network operators will give you a unique id
    and i know this is a touchy subject here but it IS also possible to get telephone numbers on some networks via same way.
    well.. it is one way... but it'll work only on unsecured networks...
    i dont know how much such mobile networks still exist today...
    but i guess all indian networks are still unsecure...
    maybe few others...

    Leave a comment:


  • something else
    replied
    you can try using $_SERVER['HTTP_X_NETWORK_INFO'] as some network operators will give you a unique id
    and i know this is a touchy subject here but it IS also possible to get telephone numbers on some networks via same way.

    Leave a comment:


  • mFreak
    replied
    omg, got the point,i never looked it from that persective, i know those phone limitations with connections to the web but i havent gave too much thinking to it. i will google it,I really need to learn. thanks for the info.

    Leave a comment:


  • metulj
    replied
    Originally posted by mFreak View Post
    Oh, didnt knew that, good to know! but what else could he do, he cant lose any significant number of users just by blocking one phone model. again just my thinking maybe its wrong,i hope it isnt.
    basicly... he can't do much...
    let's say you block phone model... and i got same phone model... so im basicly blocked and i haven't done anything wrong
    ignore above...
    let's say you block IP... and now all mobile users with same IP are blocked... and they haven't done anything wrong
    ignore all above
    let's say you block phone model and IP... now what you get ??
    getting the idea ?

    btw... Mobile providers.. thea own few IP's for GPRS/and other possible connections...
    number of IP's gets bigger with bigger Mobile provider...
    and IP get randomly changed... but it's always in use by many many users...
    so basicly blocking mobile IP will do the worst...
    what will actually happen... user who suppose to be blocked, will get in a time new IP by Mobile provider,
    but many users will get IP which is actually blocked on your site...
    you do the math...
    Last edited by metulj; 22.07.11, 19:35.

    Leave a comment:


  • mFreak
    replied
    Originally posted by metulj View Post
    blocking mobile IP will NEVER block only one user !
    Oh, didnt knew that, good to know! but what else could he do, he cant lose any significant number of users just by blocking one phone model. again just my thinking maybe its wrong,i hope it isnt.

    Leave a comment:


  • metulj
    replied
    Originally posted by mFreak View Post
    He want to block one user (ie one 3110) So he must must block his ip,what else could he do?
    blocking mobile IP will NEVER block only one user !

    Leave a comment:


  • mFreak
    replied
    Originally posted by metulj View Post
    blocking IP means losing users...
    He want to block one user (ie one 3110) So he must must block his ip,what else could he do?

    Leave a comment:


  • metulj
    replied
    Originally posted by mFreak View Post
    Yup,just block the IP.
    blocking IP means losing users...

    Leave a comment:


  • mFreak
    replied
    [s]Yup,just block the IP.[/s]
    Last edited by mFreak; 22.07.11, 21:32. Reason: bad reply

    Leave a comment:


  • shakil420
    started a topic block specific browser/phone

    block specific browser/phone

    bro @ is it possible to block nokia 3110 (for example) .Only one users device, not all users nokia 3110 device.
Working...
X