GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Any idea how to check if user has adblock? (https://gfy.com/showthread.php?t=920501)

Twig 08-07-2009 04:52 PM

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?

seeandsee 08-07-2009 05:04 PM

Quote:

Originally Posted by Twig (Post 16159271)
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?

i am interested two!

Twig 08-16-2009 10:44 AM

Anyone have any clue? Google isn't helping too much.

SmokeyTheBear 08-16-2009 10:52 AM

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"

fatfoo 08-16-2009 11:03 AM

Good question... adblock...

Any other ideas?

EscortBiz 08-16-2009 11:07 AM

surfers in these days have a built in ad blocker in their brain

Twig 08-16-2009 11:30 AM

Quote:

Originally Posted by SmokeyTheBear (Post 16191805)
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"

I'll have to look into that.

Max Cannon 08-16-2009 11:34 AM

Quote:

Originally Posted by EscortBiz (Post 16191833)
surfers in these days have a built in ad blocker in their brain

:1orglaugh

u-Bob 08-16-2009 12:41 PM

Throw your picture content in directories with names like /banners, /ads, /pictures/ads,....

Twig 08-16-2009 01:39 PM

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.

Hotrocket 08-16-2009 03:30 PM

Here ya go...
http://www.phpbuddy.com/article.php?id=20

mlove 08-16-2009 03:46 PM

Quote:

Originally Posted by Hotrocket (Post 16192436)

Ah, too bad adblockplus doesn't advertise itself in the mozilla useragent string.

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)

SmokeyTheBear 08-16-2009 11:23 PM

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>
<body>
<script>
var adblock = "yes";
setTimeout('badblock();', 15000);
function badblock(){
if (adblock == "yes"){
alert('ATTENTION you have an adblocker enabled or images disabled.\n\n This site functions on ad based revenue , please disable your adblockers and try again');
top.location.href="http://mysponsor.com";
}
}
</script>
<img src=http://moronland.net/media/pictures/wierd_pepper.jpg onload="adblock='no'">
</body>
</html>

figure someone might use it.. if gfy used it , it would sure piss some people off lol


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