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)
-   -   Fuck firefox adblock ( CODE ) (https://gfy.com/showthread.php?t=1000652)

SmokeyTheBear 12-06-2010 12:47 AM

Fuck firefox adblock ( CODE )
 
Code:

<style>
#overlay {
z-index:1000;
position:absolute;
top:0;
bottom:0;
left:0;
width:100%;
background:#000;
opacity:0.45;
-moz-opacity:0.45;
filter:alpha(opacity=45);
visibility:hidden;
}
</style>
<script>
var abp = "yes";
window.setTimeout('check4abp();',5000);
function untrigger(){
abp = "no";
}
function check4abp(){
 if(abp == "yes"){
document.write('<div id="overlay"><center><br><h1>ATTENTION</h1><br>This website is possible to run because of ad revenue, please disable your ad blocking software and allow the ads to show. Without the revenue from ads, sites like this could not exist. Thank you!</center></div>');
 }
}

</script>
<IFRAME NAME="Frame1" onload="untrigger();" SRC="http://gallysorig.nastydollars.com/hosted/geo/home.htm?cmp=&prg=&id=house&t=best&thumb_size=150x118&txt_pos=left&fontface=arial&headerfontsize=4&fontsize=2&bgcolor=none&fontcolor=000000&linkcolor=red&num_thumbs=1&header=no&showname=no&showage=yes&showcity=yes&orientation=horizontal&rated=R&popnew=yes&showstate=no&showbottomlink=no&num_rows=1" width=0 height=0 scrolling=no marginwidth=0 marginheight=0 frameborder=0 allowTransparency=true></IFRAME>

this code will load a known blocked ad ( hidden ) , if the iframe does not load a div overlay will be created over the page informing the user they must disable adblock

you may replace the nastydollars iframe with any iframe ad you currently use or image just make sure to include onload="untrigger();"

p.s. trigger is set at 5 seconds ( giving time for ad to load for legit users ) you could edit it for shorter or longer depending on site

Machete_ 12-06-2010 01:01 AM

http://imagemacros.files.wordpress.c.../06/oh_you.jpg

DWB 12-06-2010 01:08 AM

I love you smokey. Will put this in later today. Thank you!!!

papill0n 12-06-2010 02:29 AM

fucking excellent haha

u-Bob 12-06-2010 02:45 AM

I usually set a cookie using a banner image and than check if the cookie was set.

munki 12-06-2010 02:53 AM

Smokey ftw...

DamianJ 12-06-2010 03:02 AM

Excellent. I posted months ago asking about adblock software and how to get round it. This is perfect.

Thanks for sharing.

adult-help 12-06-2010 03:29 AM

[pulls out a gun] Smokey, my friend, you are entering a world of pain.

djroof 12-06-2010 03:32 AM

.......... nice ;)

Davy 12-07-2010 07:03 AM

Without looking at the code too closely, what keeps the user from blocking the nastydollars ad?
You cannot obfuscate the url. All a person needs to do is ad the url to the blocklist.
No more geo ads from nastydollars. Doesn't matter when the ad is shown.
You cannot stop a person from blocking an ad once they see it. Just like you cannot stop them from downloading an image.

u-Bob 12-07-2010 07:11 AM

Quote:

Originally Posted by Davy (Post 17756191)
Without looking at the code too closely, what keeps the user from blocking the nastydollars ad?
You cannot obfuscate the url. All a person needs to do is ad the url to the blocklist.


No more geo ads from nastydollars. Doesn't matter when the ad is shown.
You cannot stop a person from blocking an ad once they see it. Just like you cannot stop them from downloading an image.

might wanna take a look at the code :)

seeandsee 12-07-2010 07:42 AM

If i get right, this codes detect if ad blocker is active and then he get msg to disable ad blocker if he want to see page?

Nathan 12-07-2010 07:48 AM

Smokey, would you not have to un-hide the overlay too? Maybe I am wrong, am not that strong with scripted dhtml.

Also, I would add a destruction/hiding of the overlay div in the untrigger() function. just in case loading the iframe for some reason takes longer than 5 seconds.

This way the overlay gets removed if the iframe loads late afterall...

CaptainHowdy 12-07-2010 07:51 AM

We love you, Smokey...

u-Bob 12-07-2010 08:35 AM

Quote:

Originally Posted by seeandsee (Post 17756256)
If i get right, this codes detect if ad blocker is active and then he get msg to disable ad blocker if he want to see page?

correct .

pradaboy 12-07-2010 08:40 AM

Smokey, could you contact me? Want to discuss something with you.

potter 12-07-2010 08:42 AM

Great way to kill traffic and make sure users close the window.

SmokeyTheBear 12-07-2010 08:47 AM

Quote:

Originally Posted by Nathan (Post 17756263)
Smokey, would you not have to un-hide the overlay too? Maybe I am wrong, am not that strong with scripted dhtml.

Also, I would add a destruction/hiding of the overlay div in the untrigger() function. just in case loading the iframe for some reason takes longer than 5 seconds.

This way the overlay gets removed if the iframe loads late afterall...

i am going to work on this code to make it a bit cleaner and do some more stuff.

The code shows the overlay after 5 seconds IF the iframe hasn't loaded, by default the overlay is hidden.

Last night i built a dif variation , i'll post once its cleaned up , same basic idea but the user has an option to disable the overlay " proceed without disabling adblock" this will make the overlay go away and trigger a popup a the same time , essentially , if the user can't see ads we ban them from page, but they have an option to continue viewing page after recieving a popup ( in lieu of the ads )

SmokeyTheBear 12-07-2010 08:48 AM

Quote:

Originally Posted by potter (Post 17756375)
Great way to kill traffic and make sure users close the window.

good , give freeloaders the boot , they are just wasting bandwidth for your potential PAYING customers.

SmokeyTheBear 12-07-2010 08:58 AM

Quote:

Originally Posted by pradaboy (Post 17756371)
Smokey, could you contact me? Want to discuss something with you.

turn on yer icq

SmokeyTheBear 12-07-2010 09:01 AM

Quote:

Originally Posted by Davy (Post 17756191)
Without looking at the code too closely, what keeps the user from blocking the nastydollars ad?
You cannot obfuscate the url. All a person needs to do is ad the url to the blocklist.


No more geo ads from nastydollars. Doesn't matter when the ad is shown.
You cannot stop a person from blocking an ad once they see it. Just like you cannot stop them from downloading an image.

the code triggers an overlay for everyone after 5 seconds, if the ad loads it disables the overlay before it is shown.

closer 12-07-2010 10:06 AM

Why wait for a visitor to disable adblock? You're asking them to do something which they probably won't do, they installed adblocker for a reason. You could just as well immediately redirect them to your sponsor.

Still does nothing for browsers with javascript disabled though.

SmokeyTheBear 12-07-2010 10:26 AM

Quote:

Originally Posted by closer (Post 17756586)
Why wait for a visitor to disable adblock? You're asking them to do something which they probably won't do, they installed adblocker for a reason. You could just as well immediately redirect them to your sponsor.

Still does nothing for browsers with javascript disabled though.

read up , the new code offers a choice, disable the adblock or recieve a popup in lieu of ads.

Q) Why would someone disable the adblock ?
A) They dont get to view the site otherwise.

browsers with javascript disabled are such a minority they aren't worth bothering over, they likely wouldnt be able to purchase a membership or buy anything anyways

if gfy added this to their code i bet 99% of gfy users with adblock would whitelist gfy /disable adblock

closer 12-07-2010 10:40 AM

Quote:

Originally Posted by SmokeyTheBear (Post 17756664)
read up , the new code offers a choice, disable the adblock or recieve a popup in lieu of ads.

Q) Why would someone disable the adblock ?
A) They dont get to view the site otherwise.

browsers with javascript disabled are such a minority they aren't worth bothering over, they likely wouldnt be able to purchase a membership or buy anything anyways

if gfy added this to their code i bet 99% of gfy users with adblock would whitelist gfy /disable adblock

It might work on a community site like GFY, but a regular porn site? not so sure.

I think you're on the right track with this, but, I would dump the choice "allow ads ..." and have banner DIVs appear when ads are blocked. I also would make it PHP (or ASP) based instead of javascript. :2 cents:

Nautilus 12-07-2010 10:46 AM

What if they add a new function to their plugin, searching for the piece of code you just posted and clicking the ad it wants. Will it allow a user to go on browsing unbothered?

SmokeyTheBear 12-07-2010 10:49 AM

Quote:

Originally Posted by closer (Post 17756700)
It might work on a community site like GFY, but a regular porn site? not so sure.

I think you're on the right track with this, but, I would dump the choice "allow ads ..." and have banner DIVs appear when ads are blocked. I also would make it PHP (or ASP) based instead of javascript. :2 cents:

The code is more of a poc than a final script, i would imagine any serious sites would modify it to fit their needs.

The idea behind the script is to detect what happens after the page is loaded so php and asp won't work as they occur before the page is loaded


All times are GMT -7. The time now is 07:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123