How to Blocking UC Browser To Increase Revenue Ads Work 100%

9:32:00 PM
UC browser is a popular browser through its ability to block ads that JavaScript based which appears in all the sites that users visit. On one side this is indeed a very helpful user who felt offended by the site that showcases many of the ads on content. But on the other hand of course website owners will lose their income since the only revenues derived from advertising.

How to Blocking UC Browser To Increase Revenue Ads Work 100%
There is a strange thing on the UC browser . The existence of inequity in terms of display ads. They are just showing their own ads, but they even block ads from sites that you visit. When their ads were shown often interfere with passing a notification always appears multiple times in a day.

UC Browser ad blocking is enabled by default and it is not an option. I think this is bad for bloggers. Many of the bloggers are experiencing a decrease in earnings resulting from the manner of the ad blocking feature.

How to block the UC browser when visiting our website or blog?

Please follow the following steps:

How to Blocking the UC browser at Wordpress Self Hosted:

1. Download script.     or you can  copy  the java script code below !

<p id="stop"></p>
<script>

var cari = navigator.userAgent;
var dapet = cari.search("UCBrowser");
if(dapet>1) {

var strs=document.URL;
var urlnya= strs.replace("http://", "");
var strings='<meta name="viewport" content="width=device-width, initial-scale=1.0"><h3 align="center"> Maaf, website ini tidak dapat diakses menggunakan UC Browser<br/><br/>Klik tombol pilih dibawah ini , lalu salin/copy dan buka menggunakan browser lain (seperti Chrome, Opera, dll)<br/><br/><input type="text" class="teks" value="'+ document.URL +'" size="50"><br/> <button class="js-copy-btn">Pilih</button><br/></h3>';


document.getElementById("stop").innerHTML = strings;

var copyTextareaBtn = document.querySelector('.js-copy-btn');

copyTextareaBtn.addEventListener('click', function(event) {
var copyTextarea = document.querySelector('.teks');
//copyTextarea.select();
copyTextarea.selectionStart=0;
copyTextarea.selectionEnd=copyTextarea.value.length;

try {
var successful = document.execCommand('copy');
var msg = successful ? 'successful' : 'unsuccessful';
console.log('Copying text command was ' + msg);
} catch (err) {
console.log('Oops, unable to copy');
}
});

exit();
}

function exit( status ) {
// http://kevin.vanzonneveld.net
// + original by: Brett Zamir (http://brettz9.blogspot.com)
// + input by: Paul
 


2. Open file index.php

3. Open the script with Notepad, then copy its script and paste into file index.php

4. Save changes and completed

How to blocking UC browser at Blogger

1. Log in to blogger

2. Go to template column > edit HTML

3. You must parse the script code into blogger then copy and paste it under <head> code

4. Save template and finish.

To verify whether the script is working properly, please try opening your blog using UC Browser.

Read Also :

Related Article

Previous
Next Post »