₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,530 members, 8,512,333 topics. Date: Tuesday, 03 November 2026 at 09:31 AM

Toggle theme

Try This Php Code To Block Adsense On Operamini.. - Webmasters - Nairaland

Nairaland Forum › Science/Technology › Webmasters › Try This Php Code To Block Adsense On Operamini.. (659 Views)

1 Reply

Try This Php Code To Block Adsense On Operamini.. by Lastdon02(op): 10:37am On Dec 14, 2014
<?php
$isMobile = (bool)preg_match('#\b(opera m(ob|in)i|
windows (phone|ce)'.
'|s(ymbian|eries60|amsung)|p(alm|rofile/midp|
laystation portable)|nokia|fennec|htc[\-_]'.
'|up\.browser|[1-4][0-9]{2}x[1-4][0-9]{2})\b#i', $_SERVER['HTTP_USER_AGENT'] );
?>
<?php if(!$isMobile)
{ ?>
YOUR ADSENSE CODE HERE
<? } ?>


NOTE. This code is not mine but i decided to share it he to help my people here..

Why do i need this?

Many pageviews lesser earning with even much more lesser ctr.

Adsense want to cheat both advertisers &
publishers, given them higher engagement of ads with even poor clicks from opera and inturn pay pub. lower earning with even poor cpc altering clicks from high cpc device too.


With this, i conclude that: "The recent changes were made to make sure they (adsense) earn more leaving both Adv. & Pub. behind"


After i saw over 43k Pg & cpc lower then 0.08 i started looking for alternative to adsense.

a turn around of these saga, is to disable adsense for mobile with easy php code above for WP users & blogger should use the JavaScript type of code.

Good day.
1 Reply

Why You Should Not Use Google Adsense On Your Blog. • Do You Know That Comment Form Is Not Working On Operamini : Fix It Now • Google Adsense On Mobile Phones • 2 • 3 • 4

Arvixe 20% Discount Off Your First Invoice. • Empowering Wapka User - Request Any code and get it within 24hrs • Partners Needed On A Fast Rising News & Entertainment Blog