i tried this , but it doesn’t work !!

<?php
function detect_ucweb($ua=null){
    return (bool)preg_match('/UC.*Browser|UCWEB/is', $ua);
}

if(detect_ucweb($_SERVER['HTTP_USER_AGENT']))
{
    echo '<b>You are using an insecure Browser!</b><br/>The security of our users is very important to us, we strongly recommend you to use the default Browser on your phone, alternatively you can download a secure browser from here: <a href="http://www.opera.com/de/mobile">Secure Browser</a>';

}

?>
any1 have idea !!

Read more here: is it possible to block users who visitng my (wordpress based )site using UC browser and show ’em message to visit by using other browser?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: