Page 1 of 1

Adblock Trap - uptobox.com

Posted: Tue Mar 27, 2012 12:00 pm
by cb+++
Hi,

I found a anti-adblock trap at this web site: http://uptobox.com

Example url: http://uptobox.com/pj5gcedwvhuy

Filter list: Easylist

Here is the code of the trap:

Code: Select all

<script type="text/javascript">
	var utb_trap = false;
</script>
<script type="text/javascript" src="ads.ad6media.fr.js?768-.adserver.300x250.&ad_url=480x100./banner/skyscraper1651654184_&adtext.js.affiliation-france.com&kip=&ad_url=/adbanner&ad_keyword="></script>
<script type="text/javascript">
	if (utb_trap != true) {
		document.writeln("Redirection..."); 
		window.location = "/pages/adblock.html";
	}
	if ($('.page-top').text().length > 70) {
	  var tmp_txt = $('.page-top').html().substr(0, 70);
          $('.page-top').html(tmp_txt);
	  $('.page-top').append('...');
        }
</script>
Working filter
The following whitelist filter seems to work around the trap:

Code: Select all

@@||uptobox.com/ads.ad6media.fr.js?*

Re: Adblock Trap - uptobox.com

Posted: Tue Mar 27, 2012 12:30 pm
by fanboy

Re: Adblock Trap - uptobox.com

Posted: Tue Mar 27, 2012 1:43 pm
by MonztA

Re: Adblock Trap - uptobox.com

Posted: Wed May 29, 2013 11:18 pm
by Ricard33
The trap is working again.

Re: Adblock Trap - uptobox.com

Posted: Thu May 30, 2013 1:48 pm
by fanboy

Re: Adblock Trap - uptobox.com

Posted: Thu May 30, 2013 8:57 pm
by Ricard33
Thanks, the script in the last post works greatly :D