![]() |
Any idea how to check if user has adblock?
Short of recoding a ton of files and urls, I need to figure out if a user has adblock and advise them that it's affecting how my site acts.
Any idea how to detect such? |
Quote:
|
Anyone have any clue? Google isn't helping too much.
|
is adblock a specific service or do you mean adblockers in general ?
you could tie an "onload" command to an image in the ad <a href=sponsor.html><img src=adimage.jpg onload=showpage();></a> the showpage function would show the page , i.e. if the ad image doesnt load the page wont be displayed, or you could hide/show a div container that holds a message like "sorry you cant view our page with adblockers enabled , please disable your adblocker to view this page" |
Good question... adblock...
Any other ideas? |
surfers in these days have a built in ad blocker in their brain
|
Quote:
|
Quote:
|
Throw your picture content in directories with names like /banners, /ads, /pictures/ads,....
|
This isn't my issue. My issue is that the site is a classifieds site, so a lot of pages user the word "ad" in them. "postad" "viewad" etc.
|
Here ya go...
http://www.phpbuddy.com/article.php?id=20 |
Quote:
Really, do you guys think the programmers of the project would make it that easy for you to disrupt the user's experience? Currently using adblockplus in firefox, my user-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729) |
this should detect a blocker. but it sounds like in your case its not what your looking for.
what it does is waits 15 seconds then throws an alertbox and redirects the user to a sponsor url if they dont load the banner image you can test it in adblockplus by adding a custom filter for http://moronland.net/* disable it and you will see a picture of a pepper , enable it and you will be redirected after 15 seconds. Code:
<html> |
All times are GMT -7. The time now is 10:06 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123