December 20, 2014

Cara Pasang Kode Script Anti Adblock di Blog

December 20, 2014

Cara Pasang Kode Script Anti Adblock di Blog
Berikut ini cara menambah atau memasang kode (script) anti-iklan (Adblock/AddBlocker) di blog. Kode Script Anti Adblock ini bertujuan Anda blog Anda tampil utuh saat dibuka oleh user yang mengaktifkan add-on/aplikasi blokir iklan di browser (Mozilla Firefox & Google Chrome).

Adblocker adalah musuh utama para blogger yang memasang iklan Google atau Chitika dll di blognya. Jika user memasang anti iklan ini di browsernya, maka iklan tidak tampil dan tentu merugikan para blogger dan Google.

Adblocker adalah addon atau plugin di Mozilla Firefox dan Google Chrome yang berfungsi memblokir atau menghalangi tampilnya iklan di blog stau situs web.
Blogger yang baik, sebagai solidaritas sesama blogger, tentu tidak akan memasang adblocker. User yang paham pun tidak akan memasangnya karena aktivasi adblocker akan menyebabkan blog/web yang mereka buka tidak tampil utuh.

Cara Pasang Kode Script Anti Adblock di Blog
Ada dua kode dan acara pasangnya:
  1. Meminta user menonaktifkan atau mendisable add-on, aplikasi, atau software anti-iklan (AddBlocker).
  2. Memaksa user menonaktifkan adblocker jika mereka masih mau membuka blog kita yang ada iklannya (Google Adsense).

Cara Pasang Kode Anti Adblocker #1 

Klik "Template" dan "Edit HTML".

1. Copas kode berikut ini di atas kode ]]></b:skin> 

#swp_noadblocker { display:none;}


2. Copas kode berikut ini di atas kode </head>

    <script type="text/javascript">
    if (document.getElementById("swp_noadblocker") != undefined)
    {
    }
    else
    {
        alert("We've detected that you're using ADBLOCKER or some other adblocking software. In order to keep this website free, this site is sponsored in part by advertisements.\r\nPlease consider disabling your ad blocker on this website\r\nif you enjoyed the content, and would like to support future \r\ninformative posts.Thank you!\r\n\r\nClick OK to continue\r\n\r\nPowered by yoursitename");
            setTimeout("nag()",12000);
    }
    </script>


*** Tulisan yang berwarna merah bisa diubah sesuai dengan keinginan Anda.


3. Copas kode berikut ini di atas </body>


<script type="text/javascript" src="http://ftp.bauer-power.net/misc/tc/advertisement.js"></script>


4. Save Template!

Cara Pasang Kode Anti Adblocker #2

1. Layout > Add a Gadget > HTML/Javascript
2. Copas kode berikut ini di kolom "Content".


<style>#g207{position:fixed!important;position:absolute;top:0;top:expression

((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document
.body.scrollTop)+"px");
left:0;width:100%;height:100%;background-color:#fff;opacity:0.9;filter:alpha(opacity=90);display:block}#g207 p{opacity:1;filter:none;font:bold 16px Verdana,Arial,sans-serif;text-align:center;margin:20% 0}#g207 p a,#g207 p i{font-size:12px}#g207 ~ *{display:none}</style><noscript><i id=g207><p>Please enable JavaScript!<br />Bitte aktiviere JavaScript!<br />S'il vous pla&icirc;t activer JavaScript!<br />Por favor,activa el JavaScript!<br /><a href="http://antiblock.org/">antiblock.org</a></p></i></noscript><script>(function(w,u){var d=w.document,z=typeof u;function g207(){function c(c,i){var e=d.createElement('i'),b=d.body,s=b.style,l=b.childNodes.length;if(typeof i!=z){e.setAttribute('id',i);s.margin=s.padding=0;s.height='100%';l=Math.floor(Math.random()*l)+1}e.innerHTML=c;b.insertBefore(e,b.childNodes[l-1])}function g(i,t){return !t?d.getElementById(i):d.getElementsByTagName(t)};function f(v){if(!g('g207')){c('<p>Please disable your ad blocker!<br/>This site is supported by the advertisement <br/> Please disable your ad blocker to support us!!! </p>','g207')}};(function(){var a=['Adrectangle','PageLeaderAd','ad-column','advertising2','divAdBox','mochila-column-right-ad-300x250-1','searchAdSenseBox','ad','ads','adsense'],l=a.length,i,s='',e;for(i=0;i<l;i++){if(!g(a[i])){s+='<a id="'+a[i]+'"></a>'}}c(s);l=a.length;for(i=0;i<l;i++){e=g(a[i]);if(e.offsetParent==null||(w.getComputedStyle?d.defaultView.getComputedStyle(e,null).getPropertyValue('display'):e.currentStyle.display
)=='none'){return f('#'+a[i])}}}());(function(){var t=g(0,'img'),a=['/adaffiliate_','/adops/ad','/adsales/ad','/adsby.','/adtest.','/ajax/ads/ad','/controller/ads/ad','/pageads/ad','/weather/ads/ad','-728x90-'],i;if(typeof t[0]!=z&&typeof t[0].src!=z){i=new Image();i.onload=function(){this.onload=z;this.onerror=function(){f(this.src)};this.src=t[0].src+'#'+a.join('')};i.src=t[0].src}}());(function(){var o={'http://pagead2.googlesyndication.com/pagead/show_ads.js':'google_ad_client','http://js.adscale.de/getads.js':'adscale_slot_id','http://get.mirando.de/mirando.js':'adPlaceId'},S=g(0,'script'),l=S.length-1,n,r,i,v,s;d.write=null;for(i=l;i>=0;--i){s=S[i];if(typeof o[s.src]!=z){n=d.createElement('script');n.type='text/javascript';n.src=s.src;v=o[s.src];w[v]=u;r=S[0];n.onload=n.onreadystatechange=function(){if(typeof w[v]==z&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){n.onload=n.onreadystatechange=null;r.parentNode.removeChild(n);w[v]=null}};r.parentNode.insertBefore(n,r);setTimeout(function(){if(w[v]!==null){f(n.src)}},2000);break}}}())}if(d.addEventListener){w.addEventListener('load',g207,false)}else{w.attachEvent('onload',g207)}})(window);</script>

Kode Anti AdBlock #3

Kode ini yang dipasang CB sekarang. Jika user gak mau menonaktifkan AdBlock-nya, bodo amat ah, yang penting blog kita udah kebuka :)

1. Layout > Add a Gadget > HTML/JavaScript
2. Copas kode berikut ini:

<style>#g207{position:fixed!important;position:absolute;top:0;top:expression
((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document
.body.scrollTop)+"px");
left:0;width:100%;height:80%;background-color:#fff;opacity:0.9;filter:alpha(opacity=90);display:block}#g207 p{opacity:1;filter:none;font:bold 16px Verdana,Arial,sans-serif;text-align:center;margin:20% 0;color: #fff;background: #222;padding: 20px;}#g207 p a,#g207 p i{font-size:12px}#g207 ~ *{display:none}</style><noscript><i id=g207><p>Please enable JavaScript!<br />Bitte aktiviere JavaScript!<br />S'il vous pla&icirc;t activer JavaScript!<br />Por favor,activa el JavaScript!<br /><a href="http://antiblock.org/">antiblock.org</a></p></i></noscript><script>(function(w,u){var d=w.document,z=typeof u;function g207(){function c(c,i){var e=d.createElement('i'),b=d.body,s=b.style,l=b.childNodes.length;if(typeof i!=z){e.setAttribute('id',i);s.margin=s.padding=0;s.height='100%';l=Math.floor(Math.random()*l)+1}e.innerHTML=c;b.insertBefore(e,b.childNodes[l-1])}function g(i,t){return !t?d.getElementById(i):d.getElementsByTagName(t)};function f(v){if(!g('g207')){c('<p>Please disable your AdBlocker!<br/>This site is supported by the advertisement <br/> Please disable your ad blocker to support us!!! </p>','g207')}};(function(){var a=['Adrectangle','PageLeaderAd','ad-column','advertising2','divAdBox','mochila-column-right-ad-300x250-1','searchAdSenseBox','ad','ads','adsense'],l=a.length,i,s='',e;for(i=0;i<l;i++){if(!g(a[i])){s+='<a id="'+a[i]+'"></a>'}}c(s);l=a.length;for(i=0;i<l;i++){e=g(a[i]);if(e.offsetParent==null||(w.getComputedStyle?d.defaultView.getComputedStyle(e,null).getPropertyValue('display'):e.currentStyle.display
)=='none'){return f('#'+a[i])}}}());(function(){var t=g(0,'img'),a=['/adaffiliate_','/adops/ad','/adsales/ad','/adsby.','/adtest.','/ajax/ads/ad','/controller/ads/ad','/pageads/ad','/weather/ads/ad','-728x90-'],i;if(typeof t[0]!=z&&typeof t[0].src!=z){i=new Image();i.onload=function(){this.onload=z;this.onerror=function(){f(this.src)};this.src=t[0].src+'#'+a.join('')};i.src=t[0].src}}());(function(){var o={'http://pagead2.googlesyndication.com/pagead/show_ads.js':'google_ad_client','http://js.adscale.de/getads.js':'adscale_slot_id','http://get.mirando.de/mirando.js':'adPlaceId'},S=g(0,'script'),l=S.length-1,n,r,i,v,s;d.write=null;for(i=l;i>=0;--i){s=S[i];if(typeof o[s.src]!=z){n=d.createElement('script');n.type='text/javascript';n.src=s.src;v=o[s.src];w[v]=u;r=S[0];n.onload=n.onreadystatechange=function(){if(typeof w[v]==z&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){n.onload=n.onreadystatechange=null;r.parentNode.removeChild(n);w[v]=null}};r.parentNode.insertBefore(n,r);setTimeout(function(){if(w[v]!==null){f(n.src)}},2000);break}}}())}if(d.addEventListener){w.addEventListener('load',g207,false)}else{w.attachEvent('onload',g207)}})(window);</script>


UPDATE
Kode Anti AdBlocker Terbaru Lainnya

<style>#g207{position:fixed!important;position:absolute;top:0;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");z-index:999;left:0;width:100%;height:100%;background-color:#fff;opacity:0.9;filter:alpha(opacity=90);display:block}#g207 p{border:3px solid orange; width:60%; margin:20% auto; background:yellow;padding:10px;border-radius:6px;opacity:1;filter:none;font:bold 16px Verdana,Arial,sans-serif;text-align:center;}#g207 p a,#g207 p i{font-size:12px}#g207 ~ *{display:none}</style><noscript><i id=g207><p>Please enable JavaScript!<br />Bitte aktiviere JavaScript!<br />S'il vous plaît activer JavaScript!<br />Por favor,activa el JavaScript!<br /><a href="http://antiblock.org/">antiblock.org</a></p></i></noscript><script>(function(w,u){var d=w.document,z=typeof u;function g207(){function c(c,i){var e=d.createElement('i'),b=d.body,s=b.style,l=b.childNodes.length;if(typeof i!=z){e.setAttribute('id',i);s.margin=s.padding=0;s.height='100%';l=Math.floor(Math.random()*l)+1}e.innerHTML=c;b.insertBefore(e,b.childNodes[l-1])}function g(i,t){return !t?d.getElementById(i):d.getElementsByTagName(t)};function f(v){if(!g('g207')){c('<p>Anda menggunakan pemblokir iklan (AdBlocker).<br/>Nonaktifkan AdBlocker Anda agar nyaman membuka web ini</p>','g207')}};(function(){var a=['Adrectangle','PageLeaderAd','ad-column','advertising2','divAdBox','mochila-column-right-ad-300x250-1','searchAdSenseBox','ad','ads','adsense'],l=a.length,i,s='',e;for(i=0;i<l;i++){if(!g(a[i])){s+='<a id="'+a[i]+'"></a>'}}c(s);l=a.length;for(i=0;i<l;i++){e=g(a[i]);if(e.offsetParent==null||(w.getComputedStyle?d.defaultView.getComputedStyle(e,null).getPropertyValue('display'):e.currentStyle.display )=='none'){return f('#'+a[i])}}}());(function(){var t=g(0,'img'),a=['/adaffiliate_','/adops/ad','/adsales/ad','/adsby.','/adtest.','/ajax/ads/ad','/controller/ads/ad','/pageads/ad','/weather/ads/ad','-728x90-'],i;if(typeof t[0]!=z&&typeof t[0].src!=z){i=new Image();i.onload=function(){this.onload=z;this.onerror=function(){f(this.src)};this.src=t[0].src+'#'+a.join('')};i.src=t[0].src}}());(function(){var o={'http://pagead2.googlesyndication.com/pagead/show_ads.js':'google_ad_client','http://js.adscale.de/getads.js':'adscale_slot_id','http://get.mirando.de/mirando.js':'adPlaceId'},S=g(0,'script'),l=S.length-1,n,r,i,v,s;d.write=null;for(i=l;i>=0;--i){s=S[i];if(typeof o[s.src]!=z){n=d.createElement('script');n.type='text/javascript';n.src=s.src;v=o[s.src];w[v]=u;r=S[0];n.onload=n.onreadystatechange=function(){if(typeof w[v]==z&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){n.onload=n.onreadystatechange=null;r.parentNode.removeChild(n);w[v]=null}};r.parentNode.insertBefore(n,r);setTimeout(function(){if(w[v]!==null){f(n.src)}},2000);break}}}())}if(d.addEventListener){w.addEventListener('load',g207,false)}else{w.attachEvent('onload',g207)}})(window);</script>

Kode Script AdBlocker yang Dipasang CB Blogger
Simpan di atas kode </body>

&lt;style&gt;#g207{position:fixed!important;position:absolute;top:0;top:expression
((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document
.body.scrollTop)+&quot;px&quot;);
left:0;width:100%;height:80%;background-color:#fff;opacity:0.9;filter:alpha(opacity=90);display:block}#g207 p{opacity:1;filter:none;font:bold 16px Verdana,Arial,sans-serif;text-align:center;margin:20% 0;color: #fff;background: #222;padding: 20px;}#g207 p a,#g207 p i{font-size:12px}#g207 ~ *{display:none}&lt;/style&gt;&lt;noscript&gt;&lt;i id=g207&gt;&lt;p&gt;Please enable JavaScript!&lt;br /&gt;Bitte aktiviere JavaScript!&lt;br /&gt;S&#039;il vous pla&amp;icirc;t activer JavaScript!&lt;br /&gt;Por favor,activa el JavaScript!&lt;br /&gt;&lt;a href=&quot;http://antiblock.org/&quot;&gt;antiblock.org&lt;/a&gt;&lt;/p&gt;&lt;/i&gt;&lt;/noscript&gt;&lt;script&gt;(function(w,u){var d=w.document,z=typeof u;function g207(){function c(c,i){var e=d.createElement(&#039;i&#039;),b=d.body,s=b.style,l=b.childNodes.length;if(typeof i!=z){e.setAttribute(&#039;id&#039;,i);s.margin=s.padding=0;s.height=&#039;100%&#039;;l=Math.floor(Math.random()*l)+1}e.innerHTML=c;b.insertBefore(e,b.childNodes[l-1])}function g(i,t){return !t?d.getElementById(i):d.getElementsByTagName(t)};function f(v){if(!g(&#039;g207&#039;)){c(&#039;&lt;p&gt;Please disable your ad blocker!&lt;br/&gt;This site is supported by the advertisement &lt;br/&gt; Please disable your ad blocker to support us!!! &lt;/p&gt;&#039;,&#039;g207&#039;)}};(function(){var a=[&#039;Adrectangle&#039;,&#039;PageLeaderAd&#039;,&#039;ad-column&#039;,&#039;advertising2&#039;,&#039;divAdBox&#039;,&#039;mochila-column-right-ad-300x250-1&#039;,&#039;searchAdSenseBox&#039;,&#039;ad&#039;,&#039;ads&#039;,&#039;adsense&#039;],l=a.length,i,s=&#039;&#039;,e;for(i=0;i&lt;l;i++){if(!g(a[i])){s+=&#039;&lt;a id=&quot;&#039;+a[i]+&#039;&quot;&gt;&lt;/a&gt;&#039;}}c(s);l=a.length;for(i=0;i&lt;l;i++){e=g(a[i]);if(e.offsetParent==null||(w.getComputedStyle?d.defaultView.getComputedStyle(e,null).getPropertyValue(&#039;display&#039;):e.currentStyle.display
)==&#039;none&#039;){return f(&#039;#&#039;+a[i])}}}());(function(){var t=g(0,&#039;img&#039;),a=[&#039;/adaffiliate_&#039;,&#039;/adops/ad&#039;,&#039;/adsales/ad&#039;,&#039;/adsby.&#039;,&#039;/adtest.&#039;,&#039;/ajax/ads/ad&#039;,&#039;/controller/ads/ad&#039;,&#039;/pageads/ad&#039;,&#039;/weather/ads/ad&#039;,&#039;-728x90-&#039;],i;if(typeof t[0]!=z&amp;&amp;typeof t[0].src!=z){i=new Image();i.onload=function(){this.onload=z;this.onerror=function(){f(this.src)};this.src=t[0].src+&#039;#&#039;+a.join(&#039;&#039;)};i.src=t[0].src}}());(function(){var o={&#039;http://pagead2.googlesyndication.com/pagead/show_ads.js&#039;:&#039;google_ad_client&#039;,&#039;http://js.adscale.de/getads.js&#039;:&#039;adscale_slot_id&#039;,&#039;http://get.mirando.de/mirando.js&#039;:&#039;adPlaceId&#039;},S=g(0,&#039;script&#039;),l=S.length-1,n,r,i,v,s;d.write=null;for(i=l;i&gt;=0;--i){s=S[i];if(typeof o[s.src]!=z){n=d.createElement(&#039;script&#039;);n.type=&#039;text/javascript&#039;;n.src=s.src;v=o[s.src];w[v]=u;r=S[0];n.onload=n.onreadystatechange=function(){if(typeof w[v]==z&amp;&amp;(!this.readyState||this.readyState===&quot;loaded&quot;||this.readyState===&quot;complete&quot;)){n.onload=n.onreadystatechange=null;r.parentNode.removeChild(n);w[v]=null}};r.parentNode.insertBefore(n,r);setTimeout(function(){if(w[v]!==null){f(n.src)}},2000);break}}}())}if(d.addEventListener){w.addEventListener(&#039;load&#039;,g207,false)}else{w.attachEvent(&#039;onload&#039;,g207)}})(window);&lt;/script&gt;

Demikian cara memasang kode atau script Anti Adblock di Blog Blogspot Anda. Semoga para user sadar bahwa mengaktifkan adblock itu merugikan orang lain juga dirinya sendiri.

Good Luck and Happy Blogging! (www.contohblog.com).*

Sumber


Previous
« Prev Post
Author Image

Romeltea

Recommended Posts

Related Posts

Show comments
Hide comments

46 comments on Cara Pasang Kode Script Anti Adblock di Blog

  1. Thanks bro atas informasinya.

    ReplyDelete
  2. Mas, aku minta javascript adblockiller yang ada d blog ini mas, ada yg mirip sprti yg ini tp gak fungsi , jd ad adblock atau nggak ttep sm aja , dia muncul trs

    ReplyDelete
    Replies
    1. Silakan, sudah diupdate, pake Kode Anti AdBlock #3

      Delete
    2. gan yang kode ke 3 ampuh untuk uc browser. tapi hanya muncul tanda seru saja tidak berupa kalimat untuk mematikan ablocknya. bagaimana cara menggantinya?

      Delete
  3. Makasih gan infonya, bermanfaat banget.
    Semoga blog ente tetap ramai ya. :)

    ReplyDelete
  4. masih belum manjur bro... pake stylebot lalu cukup isi kode :
    #h237 {
    display: none;
    }
    website ini langsung kebuka :P
    Masih cari yang lebih manjur....

    ReplyDelete
    Replies
    1. Iya, betul tuh yg Mas Pancal bilang, saya baru coba juga, ternyata bisa.

      Delete
  5. hahahaha... :-D
    Pada cara yang ketiga:
    Bodo amat ah yang penting blog udah ke buka

    ReplyDelete
    Replies
    1. You are right brother, yang penting Google sudah "track" blog kita kebuka, ha ha... bodo amat ah, si amat juga gak bodo kok :)

      Delete
  6. Mantep mas..... ini yang dicari-cari.....

    ReplyDelete
  7. ijin pake script nya mas bro

    ReplyDelete
  8. mantap om..thanks banget script #3 memang jos hahahaha...

    ReplyDelete
  9. terima kasih atas tutorialnya,sangat membantu ^^

    ReplyDelete
  10. terima kasih om atas tutorialnya semoga tutorial lainnya membantu

    bantu kunjungan baliknya

    Anime and Games

    ReplyDelete
  11. makasih admin semoga bermanfaat dan berkah

    ReplyDelete
  12. mas saya coba 3 cara di atas tidak ada yang bisa kenapa yang mas

    ReplyDelete
    Replies
    1. Jika kode2 diatas tidak bisa digunakan, agan2 bisa pake yg trbaru diweb ane:

      www.kangsigit.com/2016/02/anti-adblock-cara-mengatasi-adblock.html

      Kode2 yg diterapin sangt sedikit, cuma beberapa baris aja & yg pasti wrok!!

      Delete
    2. tuturnya udah sy baca tp blm lengkap cara penempatannya (skipnya taruh dimana dll)

      Delete
  13. Saya kan pake tema premium, disitu sudah disediakan anti adblock..
    Tapi pas saya pasang script anti adblock sendiri malah ngga mau kerja dia,
    Kayaknya sih bentrok sm anti adblock bawaan tema.
    Tapi saya cari-cari scriptnya ngga ketemu, cm ketemu cssnya aja yg ada..
    Ada solusi?

    ReplyDelete
    Replies
    1. mestinya ada bang, check url yang mengarah ke adblocknya bang

      Delete
  14. bukan ke sini tanyanya, kalo pake premium, ya ke admin premium tanya nya...

    ReplyDelete
  15. Salam kenal sob, di ane script nya pada gk bekerja ya.. Blockads uc gk mempan

    ReplyDelete
  16. sangat setuju dengan gaya mas CB ini.. "bodo amat ah, yang penting blog kita udah kebuka"...
    memang seharusnya si penikmat artikel pada suatu blog sedikit menghargailah usaha para blogger dalam menyajikan informasi, toch menurut saya iklan2 itu juga tidak ganggu2 amat

    ReplyDelete
  17. keren kang.... ijin pake and share yo

    ReplyDelete
  18. Sebenernya memasang Anti Adblock mempengaruhi trafik gak yah?

    ReplyDelete
    Replies
    1. banget, pengunjung akan malas membuka kembali blog yang dipasangi adblocked

      Delete
  19. cara #2 sip gan, thanks

    ReplyDelete
  20. makasi ijin nyoba, semoga berkah

    ReplyDelete
  21. kaya gitu di uc mini gak jalan
    padahal visitor dari uc mini lebih banyak dari uc fast donlot

    ReplyDelete
  22. wih keren gan , makasih ye ,ane kesel emg ini semenjak ada si U* Browser , blog visitornya 2k , yang kebaca di adsense cuman 20an tae emg adblock .

    ReplyDelete
    Replies
    1. Tak coba entar mas script nya... Thnk you

      Delete
  23. nomor 3 AMPUH banget saya pake , cuma masih lolos di penerima mobile, namun sudah saya ubah tampiilan sekarang dinonaktifkan untuk mobile.

    Nah om ada lagi adblock yang bekerja untuk mobile dan dekstop dua-duanya jadi pada setingan tema diaktifkan untuk mobile

    ReplyDelete
  24. Matur tengkyu om.. Coba pasang ah, sapa tau earning bisa nambah.. heuheu..

    ReplyDelete
  25. gan, cara yang pertama berhasil tapi ketika adBlock dimatikan reload kembali kenapa masih muncul kotif lagi dan begitu seterusya

    ReplyDelete
  26. saya coba caranya semoga berhasil.

    ReplyDelete
  27. izin sruput gan..joss banget ni artikel...

    ReplyDelete
  28. code AdBlocker #3 it works.
    terima kasih gan,sukses terus

    ReplyDelete
  29. To create the Adblock Plus filter use: blogspot.com###g207

    ReplyDelete

Contact Form

Name

Email *

Message *