Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Detect AdBlock and display alternative.

Just created a script that keeps my site from...



7:49 pm on Jan 24, 2013 (gmt 0)

WebmasterWorld Senior Member

I just created a javascript that detects adblock on AdSense and displays an alternative (Amazon Associates) ad instead. I know people who use adblock don't want to see ads, and I respect that. But when it render my site poorly, they leave anyway. So I only use it in place of ONE ad block so the site is rendered correctly. Testing it on one page to be sure before I add it to others. What do you think?


9:19 pm on Jan 24, 2013 (gmt 0)

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

I'd change the way your site works so that it renders properly even if your ads are cut out (and also if javascript is disallowed) instead of fighting the adblockers and those not wanting to run your scripts.

You'll gain more by working with them in the long run.


10:00 pm on Jan 24, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

It might work, then again it might not. What you satisfactorily test on your own machine doesn't necessarily translate to working on millions of others.

Next, as a matter of real world practicality, if they don't want to see AdSense then why would they want to see Amazon?

My view is if they don't want to see Ads then respect that. Rule#1? Don't annoy your visitors.

This small minority of folks aren't going to click anything commercial so why waste time and energy with complicated schemes to defeat them?

Back to Amazon? You can only display banner Ads and they aren't worth a frankfurt.

If you have any nous whatever, you must have Amazon plain vanilla text links on your site. The AdBlocker you %^&* off and leaves, just might be the person who could follow one of those links to Amazon and buy your recommendation.

You lose!


11:19 pm on Jan 24, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Give it up Brother.
If people don't want ads, they don't want ads.
Most surfers are sympathetic to ads as long as they are not intrusive
I have tested on my main website, a lightbox explaining my cookie policy and give surfers a option of viewing the site with or without ads.
If they choose no ads, I put text where the ad would be, saying in effect, "This site supports itself by its ads"
My ad revenue has increased since doing this, so I am testing it on other sites.


1:09 am on Jan 25, 2013 (gmt 0)

WebmasterWorld Senior Member

Thanks all for your opinions on this matter. My main concern is how the page is rendered when ads are blocked. This was easier than changing the CSS and HTML layouts to render well without the ad blocks. I guess easy isn't better...back to the drawing board. Thanks again.

Featured Threads

Hot Threads This Week

Hot Threads This Month