block pc allow m0bile

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

    block pc allow m0bile

    I use wapdesire script and i use block.php to prevent pc user . .but when i block opera then it blocks all opera agents and even all opera mini. ! I want to only block pc opera mozilla python spider browsers not m0bile based operamini m0zilla browsers how to do@ any wapmaster specially riderz, s0mething else, mgigs and khanbd,,,

    #2
    some monthes ago i wrote this fking (yea, it is bad coding style) script.
    if u know php then edit it and use ;)
    PHP Code:
    <?php
    header
    ('Content-Type: text/html;charset=utf-8');
    $ua=$_SERVER['HTTP_USER_AGENT'];
    if ((
    substr($ua,0,5)=='Opera' and !strpos($ua,'Mini')) or substr($ua,0,7)=='Mozilla' or substr($ua,0,6)=='Galaxy' or substr($ua,0,12)=='AmigaVoyager' or substr($ua,0,8)=='CyberDog' or substr($ua,0,5)=='Dillo' or substr($ua,0,7)=='HotJava' or substr($ua,0,15)=='IBM WebExplorer' or substr($ua,0,4)=='iCab' or substr($ua,0,10)=='LeechCraft' or substr($ua,0,5)=='Links' or substr($ua,0,4)=='Lynx' or substr ($ua,0,11)=='NCSA Mosaic' or substr($ua,0,7)=='NCSA Mosaic' or substr ($ua,0,6)=='retawq' or substr ($ua,0,6)=='Webkit' or substr ($ua,0,4)=='Uzbl' or substr ($ua,0,3)=='w3m' or substr($ua,0,12)=='WorldWideweb'){
    echo 
    'it is comp';
    }
    else
    {
    echo 
    'it is mobile';
    }
    ?>
    p.s.: but it works :D
    Last edited by Shifty; 25.07.10, 20:06.

    Comment


      #3
      next time use search before you post a topic,
      your answer is here: http://coding-talk.com/f14/block-wap-for-pc-7111/
      Advertise your mobile site for FREE with AdTwirl

      Comment

      Working...
      X