Blocking AdBlocker

USHost247

Madly Diligent
Joined
Jul 8, 2009
Messages
8,102
Reaction score
1,036
FP$
5,440
How do i block the users that try to visit the forum with adblockers?

I want them to simply not be allowed to roam the forum while blocking our ads. The forum is dntemple.net and its going to give out domain names to users who post, but there is no point if they are blocking out the ads that are going to pay for their domain name....

I have tried many hours now and have pulled out hair trying to get a solution to this...
 
Now people using adblockers will get a nag screen until they no longer use ad blockers.

Progress is coming along. I'm leaving the forum open so people may see progress. 🙂 Going to be adding a good skin soon and then maybe getting a few more forums a added along with starting posts.
 
Looks good, haha. I love the picture it takes me to when I click Never. 😛
 
It will work for the non technical people but in a few clicks in can be blocked and you can view the site without ads and without being bugged to disable adblock.
 
A little more technical method is to go into your wrappers/templates or whatever and add div tags there. Something like this:

<div class="myTestAd" style=" text-align:center;margin:10px">
<!-- advert code goes here -->
</div>

<div id=please> Hello friend, would you please not block our ads? Those go to paying for the prizes that we give out and we'd really appreciate your continued support in being able to hand out more prizes. Thank you. </div>
Then add:
<div id=surprise> (right above your forum layout)

</div> (below the forum layout)

Then go to your CSS and add
#please {background-color: #000; color: #FFF; border: 1px solid #A60000} (Can be customized of course)
#surprise {display:none;}

Then add to the forum's wrappers:
<script>
if ($('.myTestAd').height() == 0) {
document.getElementById('please').style.display = "block";
document.getElementById('surprise').style.display = "block";
} else {
document.getElementById('please').style.display = "none";
document.getElementById('surprise').style.display = "block";
}
</script>

Important note - I have whipped this code up off the top of my head... I have not tested it and it may require tweaking to your exact specifications. Therefore any use of it is done at your own risk.

So now if they turn off javascript entirely the forum disappears and they get a message asking them not to disable ads/javascipt. (If they just disable the ad then they get a message asking them not to block ads.) Sure they can still get around it, but it means disabling javascript and using their own CSS patches.
Still doable for someone with some knowledge, but for most people it's likely just easier to enable the javascript/disable the ad blocker on that site.

I do run my own ads too and I understand the pain of people blocking them. But I also understand why people block them in the first place. (Sometimes it's a security reason in that some advertisements carry viruses and other malware that slip through the ad-networks filters. Or it's a health reason in that flashing lights of some ads can trigger epileptic seizures. So it's not just because people are thieves or don't want to see ads... Though that can also be a part of it.) A better idea might be to have a donation box of some sort so people can give money to the site directly and be given an ad-free view.
 
Which again can easily be bypassed by NoScript... You can not 100% block people from blocking ads. Like fowler has said it will only work on non-techy people.
 
i have never blocked people from viewing any of my sites when they have ad-blocker but i usually insert a little text box that asks them to click a link that will bring them to a donation page so they don't feel they are robbing from me (and they are added to premium membership so they no-longer see ads anyway)
 
Affiliate links are harder to block since they are just regular links or image links with a tracking or refferal code at the end of the destination link like example.com/aff123 , and you get a commission when people buy a product or service from your affiliate link from Amazon, eBay, or Host Gator.

Affiliate marketing can be very profitable because of higher commissions like 20-70% sometimes if you have a lot of traffic on your site, and you are good at convincing people to buy a product like web hosting, domains, and electronics from a seller you are promoting.

But, I also heard Affiliate marketing is a lot harder since the clicker needs to buy a product for you to get payed.
 
froggyboy604 said:
Affiliate links are harder to block since they are just regular links or image links with a tracking or refferal code at the end of the destination link like example.com/aff123 , and you get a commission when people buy a product or service from your affiliate link from Amazon, eBay, or Host Gator.

Affiliate marketing can be very profitable because of higher commissions like 20-70% sometimes if you have a lot of traffic on your site, and you are good at convincing people to buy a product like web hosting, domains, and electronics from a seller you are promoting.

But, I also heard Affiliate marketing is a lot harder since the clicker needs to buy a product for you to get payed.
What does this have to do with blocking adblocker?
 
Affiliate ads like links and banners are a type of ad/sponsored links which are usually coded with standard text link and image ad HTML markup code, so they can't be easily block because most ad blockers block Javascripts which is used for Adsense, and other ad networks, but don't block HTML affiliate codes easily.

like:

<a href="example.com/aff123code"><img src="rainbow.gif"></a>

<a href="http://example.com/aff123code">Sponsored Affiliate link for webhosting</a>
 
If you invent something to block out the ad-blocker, someone will invent something to re-block ads again. Or each individual person can just individually block images or scripts (ads) they don't want to see. 😛
 
Back
Top Bottom