Yazmış olduğum kod, Mobil cihazlarda sadece organik hit özelliği çalışıyor. Diğer reklam engelleme özellikleri mobil cihazlarda çalışmamaktadır.

Kullanıcı başına maksimum reklam tıklama limiti
let limitClick = 3;Maksimum reklam tıklama limiti dolduğunda reklamların tekrar gösterileceği saat girin. ( 1-2-3-4-5...24 );
let hourlyTime = 2;Maksimum tıklama sayısına ulaşıldığı sitedeki tüm google adsense reklamlarının kaldırılmasını istiyorsanız. true yazın eğer reklamların sadece tıklanmasını engellemek isterseniz. false olarak bırakın.
false seçeneği kalırsa maksimum reklam tıklama limitine ulaşan bir kullanıcı reklamlarınıza sadece gösterim kazandıracaktır. Tıklama yapamayacaktır. (önerilen)
let removeActive = false;removeActive özelliği false ise bu özellik kullanılabilir. Reklamlar maksimum tıklanma sayısına ulaştığında reklamın üzerine, belirtilen renkte tıklanmasını engelleyen koruyucu açılacaktır. Saydam renk istiyorsanız transparent yazın. Resim
let blockColor = 'rgb(244 67 54 / 43%)';Sadece google üzerinde siteye erişen kullanıcılara reklam göstermek isterseniz. true yazın.
let organicHit = false;Koddaki ayarları isteğinize göre ayarlayın. Aşağıdaki ayarlar önerdiğim ayarlardır. Kullanıcılar 1 saate 2 kez reklama tıklayabilir.
// Ayarlar
let limitClick = 2;
let hourlyTime = 1;
let removeActive = false;
let blockColor = 'rgb(244 67 54 / 43%)';
let organicHit = false;
function setCookie(e,r,t){var o=new Date;o.setTime(o.getTime()+t*hourlyTime*60*60*1e3);o="expires="+o.toUTCString();document.cookie=e+"="+r+";"+o+";path=/"}function getCookie(e){for(var r=e+"=",t=decodeURIComponent(document.cookie).split(";"),o=0;o<t.length;o++){for(var i=t[o];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(r))return i.substring(r.length,i.length)}return""}function isCookieExist(e){return""!==getCookie(e)}function organicHitCheck(){var e=document.createElement("a");return e.href=document.referrer,"www.google.com"==e.host}!function(i){i.fn.iframeTracker=function(e){"function"==typeof e&&(e={blurCallback:e});var r=this.get();if(null===e||!1===e)i.iframeTracker.untrack(r);else{if("object"!=typeof e)throw new Error("Wrong handler type (must be an object, or null|false to untrack)");i.iframeTracker.track(r,e)}return this},i.iframeTracker={focusRetriever:null,focusRetrieved:!1,handlersList:[],isIE8AndOlder:!1,init:function(){try{!0===i.browser.msie&&i.browser.version<9&&(this.isIE8AndOlder=!0)}catch(e){try{navigator.userAgent.match(/(msie) ([\w.]+)/i)[2]<9&&(this.isIE8AndOlder=!0)}catch(e){}}if(i(window).focus(),i(window).blur(function(e){i.iframeTracker.windowLoseFocus(e)}),i("body").append('<div style="position:fixed; top:0; left:0; overflow:hidden;"><input style="position:absolute; left:-300px;" type="text" value="" id="focus_retriever" readonly="true" /></div>'),this.focusRetriever=i("#focus_retriever"),this.focusRetrieved=!1,this.isIE8AndOlder){this.focusRetriever.blur(function(e){e.stopPropagation(),e.preventDefault(),i.iframeTracker.windowLoseFocus(e)}),i("body").click(function(e){i(window).focus()}),i("form").click(function(e){e.stopPropagation()});try{i("body").on("click","form",function(e){e.stopPropagation()})}catch(e){console.log("[iframeTracker] Please update jQuery to 1.7 or newer. (exception: "+e.message+")")}}},track:function(e,r){r.target=e,i.iframeTracker.handlersList.push(r),i(e).bind("mouseover",{handler:r},i.iframeTracker.mouseoverListener).bind("mouseout",{handler:r},i.iframeTracker.mouseoutListener)},untrack:function(e){if("function"==typeof Array.prototype.filter){i(e).each(function(e){i(this).unbind("mouseover",i.iframeTracker.mouseoverListener).unbind("mouseout",i.iframeTracker.mouseoutListener)});function r(e){return null!==e}for(var t in this.handlersList){for(var o in this.handlersList[t].target)-1!==i.inArray(this.handlersList[t].target[o],e)&&(this.handlersList[t].target[o]=null);this.handlersList[t].target=this.handlersList[t].target.filter(r),0===this.handlersList[t].target.length&&(this.handlersList[t]=null)}this.handlersList=this.handlersList.filter(r)}else console.log("Your browser doesn't support Array filter, untrack disabled")},mouseoverListener:function(e){e.data.handler.over=!0,i.iframeTracker.retrieveFocus();try{e.data.handler.overCallback(this,e)}catch(e){}},mouseoutListener:function(e){e.data.handler.over=!1,i.iframeTracker.retrieveFocus();try{e.data.handler.outCallback(this,e)}catch(e){}},retrieveFocus:function(){document.activeElement&&"IFRAME"===document.activeElement.tagName&&(i.iframeTracker.focusRetriever.focus(),i.iframeTracker.focusRetrieved=!0)},windowLoseFocus:function(e){for(var r in this.handlersList)if(!0===this.handlersList[r].over)try{this.handlersList[r].blurCallback(e)}catch(e){}}},i(document).ready(function(){i.iframeTracker.init()})}(jQuery),jQuery(document).ready(function(){jQuery("body").append("<style>.adsbygoogle:not(.adsbygoogle-noablate){position: relative!important;} .adsbygoogle.lock:before{content: ' '; width: 100%; height: 100%; display: block; position: absolute; z-index: 10000; user-select: none; cursor: no-drop;background: "+blockColor+";}</style>");var t,o=0,i=1;isCookieExist("adInvalidClickCheck")?o=parseInt(getCookie("adInvalidClickCheck"),10):setCookie("adInvalidClickCheck","0",1),isCookieExist("adInvalidClickCheck_organicHit")||(1==organicHit&&1==organicHitCheck()?setCookie("adInvalidClickCheck_organicHit",!0,1):1==organicHit&&jQuery(".adsbygoogle").remove()),o>=limitClick?1==removeActive?jQuery(".adsbygoogle").remove():jQuery(".adsbygoogle").addClass("lock"):t=setInterval(function(){jQuery(".adsbygoogle:not(.adsbygoogle-noablate)").each(function(e,r){0<jQuery(r).find("iframe").length&&(console.log("Ads Found!"),jQuery(r).find("iframe").on("load",function(){console.log("Ads loaded!"),setTimeout(function(){jQuery(r).iframeTracker({blurCallback:function(){console.log(i+++" Ads Click!"),setCookie("adInvalidClickCheck",""+ ++o,1),"true"==getCookie("adInvalidClickCheck_organicHit")&&setCookie("adInvalidClickCheck_organicHit",!0,1);var e=setInterval(function(){o>=limitClick&&(1==removeActive?jQuery(".adsbygoogle").remove():jQuery(".adsbygoogle").addClass("lock")),clearInterval(e)},250)}})},1e3)}),clearInterval(t))})},200)});
