Graphic Bar
D3xt3r.com
Panel
Graphic Bar

Anti-Adblock V2



TESTING SYSTEM: Anti-Adblock Test

This script has been enhanced from a previously released script by D3xt3r.

It is covered under D3xt3r.com Works guidelines.


Information:
This script allows you to block most ad-block users from viewing pages with ad-block enabled.

If they use ad-block the script will display a notification (that you can modify) to the user asking to disable ad-block, or purchase upgrade to view no ad's.
This system functions using Javascript and Standard CSS, if the user has Javascript disabled (Very Rare) the script will automatically assume the does not have ad-block enabled, and should display the page normally.


Troubleshooting:
Page doesn't fully block when a user uses ad-block.

* Its possible that you have a error in your HTML, where </span> appears more than once for a <span> section. Please fix this. Or modify the last line of code to use <div... instead of <span...


This script is not completely fool-proof. But should work 95% of the time for all ad-block users. There are possibilities where this script will not function. Here are a few reasons...

* The users browser is too old. They may need to upgrade their browser.
* The user has Javascript disabled, thus the system would act as if they have no ad-block software running.
* Their ad-block software is not very sophisticated, and doesn't attempt to block all ad's. Maybe only some.


Instructions:
* Copy and paste CODE_A directly below <body> on any page you wish the system to function. (Modify Display if you wish)
* Copy and paste CODE_B directly into a blank text file. Name this text file "advertisement.js" and place in the root folder of your server.


Script_A:
<!-- Anti-Adblock V2 -->
<!-- By D3xt3r -->
<!-- Please Do Not Remove Tag -->
<!-- D3xt3r.com -->

<style type="text/css">
#blockblockA {position:absolute;top:0px;left:0px;background-color:#000000;width:100%;height:100%;}
#blockblockA td {text-align:center;width:100%;height:100%;}
#blockblockA td p {font: bold 20px Verdana;color:#ffffff;}
#blockblockA td div {font: bold 13px Verdana;color:#ffffff;}
#blockblockB {visibility:invisible;display:none;}
#linkA {font: bold 13px Verdana;color:#ffffff;}
</style>

<noscript>
<style type="text/css">
#blockblockA {visibility:invisible!important;display:none!important;}
#blockblockA td {visibility:invisible!important;display:none!important;}
#blockblockA td p {visibility:invisible!important;display:none!important;}
#blockblockB {visibility:visible!important;display:block!important;}
</style>
</noscript>

<script type="text/javascript" src="/advertisement.js"></script>

<table id="blockblockA"><tr><td>

<!-- DISPLAY HTML CODE HERE -->

<p>Please Disable Ad-Block To View This Website.</p>

<!-- DISPLAY HTML CODE HERE -->

<!-- Do Not Remove Unless Purchased Please -->
<div id="linkA" align="right">By <a href="http://d3xt3r.com/">D3xt3r</a></div>
<!-- Do Not Remove Unless Purchased Or Testing Please -->

</td></tr></table>

<span id="blockblockB">


Script_B:
document.write('<style type="text/css">#blockblockA {visibility:invisible!important;display:none!important;}#blockblockA td {visibility:invisible!important;display:none!important;}#blockblockA td p {visibility:invisible!important;display:none!important;}#blockblockB {visibility:visible!important;display:block!important;}</style>');
d3xt3r d3x d3xt3r.net www.d3xt3r.net
Online | 1,620,448 Hits | 5 Users Online | Load 0.068 Secs
Website Design & Implementation By D3xt3r
Powered By X.D.D | W3C Validate: HTML/CSS
veltx veltix d3xt3r d3x dex dexter