Le script




PLACER LE CODE SUIVANT SUR LA PAGE QUE VOUS VOULEZ ÉQUIPER D'UNE PROTECTION ANTI-ADBLOCK .
POUR LES BLOG "BLOGGER", PLACER CE CODE DANS UN GADGET HTML , VOTRE BLOG SERA PROTÉGÉ DANS SON ENTIER.


<!-- Debut du script anti AdBlock -->
 <div id="my_ad_div">
<script type="text/javascript">
google_ad_client = "ca-pub-7509414348525445";
google_ad_host = "pub-1556223355139109";
 /* castle carré principale */
google_ad_slot = "6451157115";
google_ad_width = 2;
google_ad_height = 2;
</script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
</div>

<script type="text/javascript">
function jabbahud()
{
if(document.getElementById("my_ad_div").offsetHeight==0)
{alert("L accès a ce site vous est temporairement interdit car vous bloquez les publicités");window.location="http://lutteadblock.blogspot.ca/2014/11/page-datterissage.html"}
}
window.onload=jabbahud;
</script>
<!-- Fin du script anti AdBlock -->


Le texte surligné en jaune représente l'adresse de destination, c'est a dire l'adresse où sera redirigé l'utilisateur qui utilise un bloqueur de publicité. Vous pouvez soit conserver l'adresse proposée, soit la remplacer par celle de votre choix.

*Le texte écrit en rouge ne sert qu'a identifier votre script a l’intérieur de votre code. Néanmoins je vous conseille de le conserver.