AdBlocker-Code erweitern

Schumiel

Lieutenant
Dabei seit
Jan. 2010
Beiträge
670
Hallo,

und zwar habe ich mir den Code eines AdBlockers genommen und ich möchte gern, dass nur eine PHP-Variable bestückt wird, und nicht wie hier, ein Bild erscheint. Ich möchte damit einfach nur messen, wie viele überhaupt AdBlocker nutzen, ohne sie einzuschränken.

Wer kann helfen?

PHP:
<?php $antiblock_short_urls = array('www.domain.de,www.domain.com'); ?>
<?php $antiblock_message = str_replace("\r\n", "\n", 'Please disable your ad blocker!
Bitte deaktiviere Deinen Werbeblocker!
Veuillez désactiver votre bloqueur de publicité!
Por favor, desactive el bloqueador de anuncios!'); ?>
<?php
function imagestringbox($message) {
	$font = 5;
	$shadow = true;
	$line_spacing = mt_rand(1, 5);//random line spacing influences base64 source and image size
	$lines = explode("\n", utf8_decode($message));
	$line_count = count($lines);
	$max_len = 0;
	foreach ($lines as $line) {
		$max_len = max($max_len, strlen($line));
	}
	$line_height = imagefontheight($font);
	$image_height = ($line_height * $line_count) + ($line_spacing * ($line_count - 1));
	$image_width = imagefontwidth($font) * $max_len;
	$image = imagecreate($image_width, $image_height);
	$random_color = mt_rand(250, 255);
	imagecolorallocate($image, $random_color, $random_color, $random_color);//random color influences base64 source
	$line_spacing_i = 0;// first line does not have line spacing
	for ($i = 0; $i < $line_count; $i++) {
		if ($shadow) {
			$shadow_color = imagecolorallocate($image, 200, 200, 200);
			imagestring($image, 5, 1, $line_height * $i + $line_spacing_i + 1, $lines[$i], $shadow_color);
		}
		// text line
		imagestring($image, 5, 0, $line_height * $i + $line_spacing_i, $lines[$i], imagecolorallocate($image, 0, 0, 0));
		$line_spacing_i += $line_spacing;
	}
	ob_start();
	imagepng($image);
	$image_content = ob_get_contents();
	ob_end_clean();
	imagedestroy($image);
	return '<img src="data:image/png;base64,' . base64_encode($image_content) . '" height="' . $image_height . '" width="' . $image_width . '" alt="" />';
}
?>
<?php $antiblock_message = imagestringbox($antiblock_message); ?>
<?php $antiblock_layer_id = chr(98 + mt_rand(0,24)) . substr(md5(time()), 0, 3); ?><?php $antiblock_html_elements = array (  0 => 'div',  1 => 'span',  2 => 'b',  3 => 'i',  4 => 'font',  5 => 'strong',  6 => 'center',); $antiblock_html_element = $antiblock_html_elements[array_rand($antiblock_html_elements)]; ?>
<style>#<?php echo $antiblock_layer_id; ?>{position:fixed !important;position:absolute;top:<?php echo mt_rand(-3, 3); ?>px;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");left:<?php echo mt_rand(-3, 3); ?>px;width:<?php echo mt_rand(98, 103); ?>%;height:<?php echo mt_rand(98, 103); ?>%;background-color:#fff;opacity:.95;filter:alpha(opacity=95);display:block;padding:20% 0}#<?php echo $antiblock_layer_id; ?> *{text-align:center;margin:0 auto;display:block;filter:none;font:bold 14px Verdana,Arial,sans-serif;text-decoration:none}#<?php echo $antiblock_layer_id; ?> ~ *{display:none}</style><script>(function(l,m){function n(a){a&&<?php echo $antiblock_layer_id; ?>.nextFunction()}var h=l.document,p=["i","s","u"];n.prototype={rand:function(a){return Math.floor(Math.random()*a)},getElementBy:function(a,b){return a?h.getElementById(a):h.getElementsByTagName(b)},getStyle:function(a){var b=h.defaultView;return b&&b.getComputedStyle?b.getComputedStyle(a,null):a.currentStyle},deferExecution:function(a){setTimeout(a,250)},insert:function(a,b){var e=h.createElement("<?php echo $antiblock_html_element; ?>"),d=h.body,c=d.childNodes.length,g=d.style,f=0,k=0;if("<?php echo $antiblock_layer_id; ?>"==b){e.setAttribute("id",b);g.margin=g.padding=0;g.height="100%";for(c=this.rand(c);f<c;f++)1==d.childNodes[f].nodeType&&(k=Math.max(k,parseFloat(this.getStyle(d.childNodes[f]).zIndex)||0));k&&(e.style.zIndex=k+1);c++}e.innerHTML=a;d.insertBefore(e,d.childNodes[c-1])},displayMessage:function(a){var b=this;a="abisuq".charAt(b.rand(5));b.insert("<"+a+'><?php echo str_replace(array("\n", "'"), array('<br>', "'"), $antiblock_message); ?> <a href="<?php echo $antiblock_short_urls[ array_rand($antiblock_short_urls) ]; ?>">[ ? ]</a>'+("</"+a+">"),"<?php echo $antiblock_layer_id; ?>");h.addEventListener&&b.deferExecution(function(){b.getElementBy("<?php echo $antiblock_layer_id; ?>").addEventListener("DOMNodeRemoved",function(){b.displayMessage()},!1)})},i:function(){for(var a="<?php echo implode(",", array_merge(array_rand(array_flip(array('ad_img','head_ad','AD_half','Ad300x250','Ad3Left','AdAboveGame','AdAuth2','AdBar','AdBox300','AdBox728','AdContainer','AdFrame2','AdImage','AdTopLeader','Ad_976x105','Ad_Right1','AdsLeader','AdsRight','Ads_OV_BS','AdvArea','AdvertPanel','BannerAd','BigBoxAd','CONTENTAD','ContentAd2','CornerAd','DivAdB','FooterAd','GoogleAd3','GoogleAdTop','HALHouseAd','HeaderAD','LeftAd','LeftAdF1','RgtAd1','SponsoredAd','SponsorsAds','TextLinkAds','ThreadAd','Top468x60AD','TopBannerAd','WNAd41','ad-160','ad-2','ad-220x90-1','ad-300','ad-300-250','ad-300x60-1','ad-7','ad-abs-b-0','ad-article','ad-banner-1','ad-bar','ad-bigbox','ad-blade','ad-boxes','ad-btm','ad-center','ad-header','ad-in-post','ad-inner','ad-label2','ad-mrec2','ad-north','ad-section','ad-skin','ad-three','ad-top','ad-typ1','ad-uprrail1','ad02','ad125TR','ad160-2','ad260x60','ad300','ad300-title','ad300_250','ad300_a','ad300x600','ad32','ad468x60','ad728x90_1','adBanner','adBanner4','adBlock01','adColumn','adDailyDeal','adDiv300','adFixFooter','adHeaderTop','adLB','adLabel','adLink300','adMessage','adMpuBottom','adRight1','adSidebar','adSpace0','adSpace1','adSpace18','adSpace19','adSpace3','adSpace7','adSpace9','adTextRt','adThree','adTop1','adTwo','adWrapper1','ad_03','ad_160','ad_300c','ad_300misc','ad_300x250m','ad_4','ad_500','ad_500x150','ad_728x91','ad_8','ad_88x31','ad_940','ad_F','ad_H','ad_J','ad_L','ad_Middle1','ad_O','ad_banner','ad_branding','ad_cell','ad_close','ad_comments','ad_content','ad_div_top','ad_fb_circ','ad_flyrelax','ad_foot','ad_grp2','ad_halfpage','ad_header','ad_leader','ad_left_1','ad_links','ad_lnk','ad_lrec','ad_marker','ad_overlay','ad_overture','ad_panel','ad_rr_1','ad_rside','ad_sense','ad_small','ad_spot_a','ad_table','ad_tbl','ad_unit','adbarbox','adblock1','adbn','adclear','adclose','adcontent','adcontent1','add720','add_ciao2','adfooter','adfreead','adhide','adholder','adimg0','adjacency','adl_250x250','adlove','admid','adposition','adposition2','adrectangle','adrig','adrighthome','ads-160x600','ads-300','ads-468','ads-5','ads-block','ads-bottom','ads-header','ads-leader','ads-menu','ads-middle','ads-mpu','ads-rhs','ads-right','ads-wrapper','ads120','ads125','ads315','ads728x90_2','ads790','adsDiv3','adsHeading','adsTopLeft','adsZone1','ads_300','ads_300x250','ads_banner','ads_button','ads_horiz','ads_html1','ads_html2','ads_inner','ads_medrect','ads_video','adsbox','adsdiv300','adsense-new','adsense-tag','adsense-top','adsense6','adsense728','adsensempu','adshometop','adspace-728','adsplace4','adspot-2','adspot-c','adsquare2','adss','adstd','adtag5','adtaily','adtech_2','adtech_3','adtxt','adv-01','adv-300','adv-box','adv-midroll','adv-mpux','adv-preroll','adv-x36','adv-x37','adv130x195','adv300top','adv300x250','adv468x90','adv_mpu1','adv_sky','adver2','adver3','adver4','adver6','advert-1','advert-left','advert-sky','advert-text','advert2','advert_04','advert_mid','advert_yell','advertbox2','advertbox3','adverthome','adverti','advertise1','advertleft','advframe','adwin','adxMiddle5','adzbanner','adzerk2','articleAd','article_ads','aside_ad','banner468','bannerAdTop','bannerAds','banner_ads','banneradrow','bbo_ad1','bigAd1','bigBoxAd','bigadspace','blockAds','block_ad2','bn_ad','bnrAd','bnrhd468','body-ads','book-ad','botads2','bottom-ads','bottomMPU','bottom_ads','bottomad','box_ad','boxad4','bpAd','br_ad','btmad','btnAds','buttonAds','ch-ads','cnnTopAd','colAd','contentAd','content_ads','content_mpu','ct-ad-lb','ctl00_TopAd','cube_ad','dap300x250','dartad11','dartad17','dartad8','div-ad-flex','divAdLeft','divMenuAds','ds-mpu','elite-ads','externalAd','fl_hdrAd','floatads','foot-ad-1','foot-add','footer-adv','footer-affl','footerAdBox','footerAdd','footer_ads','footer_adv','footerads','fwAdBox','gallery_ads','game-ad','gamead','gglads','gog_ad','gooadtop','google-ads','googlead','googleadsrc','googtxtad','head1ad','headAds','head_ads','header-ads','headerAdv','headerad','hldhdAds','homeAd','homeMPU','hometopads','houseAd','hp-mpu','hp-store-ad','idDivAd','iframe_ad_2','inline-ad','internalads','iqadtile9','islandAdPan','kdz_ad1','kdz_ad2','large-ads','lb-ad','lbAdBarBtm','leaderAd','listing-ad','live-ad','logoAd2','long-ad-box','mBannerAd','mainPageAds','main_AD','main_rec_ad','marquee_ad','memberad','menu-ads','midbarad','middlead','mini-ad','mpuSlot','mpu_ad','mpu_ad2','mpubox','mpuholder','ms_ad','multi_ad','my-ads','navAdBanner','navbar_ads','nbaVid300Ad','nbabot728ad','new_topad','ng_rtcol_ad','ns_ad2','nuevo_ad','onespot-ads','online_ad','onpageads','outerAd300','plAds','popadwrap','post5_adbox','premium_ad','promoAds','pub468x60','rect-ad','rectangleAd','redirect-ad','related_ad','rh-ad','rhsads','right-ads','rightAd1','rightAd_rdr','rightad','rightads','rightbar-ad','rrAdWrapper','rr_ad','rt-ad468','rtmod_ad','sAdsBox','sb_ad_links','sbads-top','scoreAD','searchAds','secondad','self-ad','serveAd2','shortads','side-boxad','sideAdLarge','sideBarAd','sidead','sideadzone','sidebar-ad1','sidebar_ad','sidebar_ads','sidepad-ad','site_top_ad','skyAd','skybox-ad','skyline_ad','skyscrapeAd','smallads','smallerAd','some-ads','speeds_ads','spl_ad','spnAds','sponsAds','spons_links','sponsorAd','sponsorAd1','sponsorAd2','sponsorBar','spotadvert3','spotadvert5','story-ad','story_ad','swfAd1','takeover-ad','text-ads','textAd1','text_ads','textad','tgAD_imu_2','tgAD_imu_4','thistad','tmcomp_ad','toaster_ad','tobsideAd','top-ad-menu','top3_ads','topAdBanner','topAdSpace','topAdsG','topAdvBox','topAdvert','top_ad_zone','topadsblock','topadsdiv','topadvert','toptextad','ugly-ad','v_ad','vc_side_ad','vert-ads','videoAd','wall_advert','walltopad','weather-ad','x-houseads','y-ad-units','yahoo_ads','zztextad','tadsb.c')), 7), array("ad", "ads", "adsense"))); ?>".split(","),b=a.length,e="",d=this,c=0,g="abisuq".charAt(d.rand(5));c<b;c++)d.getElementBy(a[c])||(e+="<"+g+' id="'+a[c]+'"></'+g+">");d.insert(e);d.deferExecution(function(){for(c=0;c<b;c++)if(null==d.getElementBy(a[c]).offsetParent||"none"==d.getStyle(d.getElementBy(a[c])).display)return d.displayMessage("#"+a[c]+"("+c+")");d.nextFunction()})},s:function(){var a={'pagead2.googlesyndic':'google_ad_client','js.adscale.de/getads':'adscale_slot_id','get.mirando.de/miran':'adPlaceId'},b=this,e=b.getElementBy(0,"script"),d=e.length-1,c,g,f,k;h.write=null;for(h.writeln=null;0<=d;--d)if(c=e[d].src.substr(7,20),a[c]!==m){f=h.createElement("script");f.type="text/javascript";f.src=e[d].src;g=a[c];l[g]=m;f.onload=f.onreadystatechange=function(){k=this;l[g]!==m||k.readyState&&"loaded"!==k.readyState&&"complete"!==k.readyState||(l[g]=f.onload=f.onreadystatechange=null,e[0].parentNode.removeChild(f))};e[0].parentNode.insertBefore(f,e[0]);b.deferExecution(function(){if(l[g]===m)return b.displayMessage(f.src);b.nextFunction()});return}b.nextFunction()},u:function(){var a="/acc_random=,/ad-bottom.,/ad_width/ad,/adloader.,/adwrapper/ad,/peel1.js,/popunder1_,/sevenl_ad.,.468x60-,_638x200_".split(","),b=this,e=b.getElementBy(0,"img"),d,c;e[0]!==m&&e[0].src!==m&&(d=new Image,d.onload=function(){c=this;c.onload=null;c.onerror=function(){p=null;b.displayMessage(c.src)};c.src=e[0].src+"#"+a.join("")},d.src=e[0].src);b.deferExecution(function(){b.nextFunction()})},nextFunction:function(){var a=p[0];a!==m&&(p.shift(),this[a]())}};l.<?php echo $antiblock_layer_id; ?>=<?php echo $antiblock_layer_id; ?>=new n;h.addEventListener?l.addEventListener("load",n,!1):l.attachEvent("onload",n)})(window);</script>
 

Drexel

Lt. Commander
Dabei seit
Jan. 2012
Beiträge
1.191
Hast Du schon irgendwas selbst versucht außer den Code hier reinzupasten? Sieht für mich eher nach "Ich hab kein Bock mich dadurchzufriemeln, macht Ihr mal" aus...
 

iks-deh

Lt. Commander
Dabei seit
Jan. 2011
Beiträge
1.225
Vielleicht ist es so verständlicher:

Code:
<?php
$antiblock_short_urls=a
rray(
'www.domain.de,www.domain.com');
?>
    <?php
    $antiblock_message=s
    tr_replace(
    "\r\n",
    "\n",
    'Please disable your ad blocker!
Bitte deaktiviere Deinen Werbeblocker!
Veuillez désactiver votre bloqueur de publicité!
Por favor, desactive el bloqueador de anuncios!');
    ?>
        <?php
        function
        imagestringbox($message)
        {
        $font=5
        ;
        $shadow=t
        rue;
        $line_spacing=m
        t_rand(1,
        5);//random
        line
        spacing
        influences
        base64
        source
        and
        image
        size
        $lines=e
        xplode(
        "\n",
        utf8_decode($message));
        $line_count=c
        ount($lines);
        $max_len=0
        ;
        foreach
        ($lines
        as
        $line)
        {
        $max_len=m
        ax($max_len,
        strlen($line));
        }
        $line_height=i
        magefontheight($font);
        $image_height=(
        $line_height
        *
        $line_count)
        +
        ($line_spacing
        *
        ($line_count
        -
        1));
        $image_width=i
        magefontwidth($font)
        *
        $max_len;
        $image=i
        magecreate($image_width,
        $image_height);
        $random_color=m
        t_rand(250,
        255);
        imagecolorallocate($image,
        $random_color,
        $random_color,
        $random_color);//random
        color
        influences
        base64
        source
        $line_spacing_i=0
        ;//
        first
        line
        does
        not
        have
        line
        spacing
        for
        ($i=0
        ;
        $i
        <
        $line_count;
        $i++)
        {
        if
        ($shadow)
        {
        $shadow_color=i
        magecolorallocate($image,
        200,
        200,
        200);
        imagestring($image,
        5,
        1,
        $line_height
        *
        $i
        +
        $line_spacing_i
        +
        1,
        $lines[$i],
        $shadow_color);
        }
        //
        text
        line
        imagestring($image,
        5,
        0,
        $line_height
        *
        $i
        +
        $line_spacing_i,
        $lines[$i],
        imagecolorallocate($image,
        0,
        0,
        0));
        $line_spacing_i
        +=$
        line_spacing;
        }
        ob_start();
        imagepng($image);
        $image_content=o
        b_get_contents();
        ob_end_clean();
        imagedestroy($image);
        return
        '<img src="data:image/png;base64,'
        .
        base64_encode($image_content)
        .
        '" height="'
        .
        $image_height
        .
        '" width="'
        .
        $image_width
        .
        '" alt="" />';
        }
        ?>
            <?php
            $antiblock_message=i
            magestringbox($antiblock_message);
            ?>
                <?php
                $antiblock_layer_id=c
                hr(98
                +
                mt_rand(0,24))
                .
                substr(md5(time()),
                0,
                3);
                ?>
                    <?php
                    $antiblock_html_elements=a
                    rray
                    (
                    0=>'div',
                        1
                        =>
                        'span',
                        2
                        =>
                        'b',
                        3
                        =>
                        'i',
                        4
                        =>
                        'font',
                        5
                        =>
                        'strong',
                        6
                        =>
                        'center',);
                        $antiblock_html_element
                        =
                        $antiblock_html_elements[array_rand($antiblock_html_elements)];
                        ?>
                        <style>
                            #<?php echo $antiblock_layer_id;
                            ?> {
                                position:fixed !important;
                                position:absolute;
                                top:<?php echo mt_rand(-3, 3);
                                ?>px;
                                top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");
                                left:<?php echo mt_rand(-3, 3);
                                ?>px;
                                width:<?php echo mt_rand(98, 103);
                                ?>%;
                                height:<?php echo mt_rand(98, 103);
                                ?>%;
                                background-color:#fff;
                                opacity:.95;
                                filter:alpha(opacity=95);
                                display:block;
                                padding:20% 0
                            }
                            #<?php echo $antiblock_layer_id;
                            ?> * {
                                text-align:center;
                                margin:0 auto;
                                display:block;
                                filter:none;
                                font:bold 14px Verdana, Arial, sans-serif;
                                text-decoration:none
                            }
                            #<?php echo $antiblock_layer_id;
                            ?> ~ * {
                                display:none
                            }
                        </style>
                        <script>
                            (function (l, m) {
                                function n(a) {
                                    a && <? php echo $antiblock_layer_id; ?> .nextFunction()
                                }
                                var h = l.document,
                                    p = ["i", "s", "u"];
                                n.prototype = {
                                    rand: function (a) {
                                        return Math.floor(Math.random() * a)
                                    },
                                    getElementBy: function (a, b) {
                                        return a ? h.getElementById(a) : h.getElementsByTagName(b)
                                    },
                                    getStyle: function (a) {
                                        var b = h.defaultView;
                                        return b && b.getComputedStyle ? b.getComputedStyle(a, null) : a.currentStyle
                                    },
                                    deferExecution: function (a) {
                                        setTimeout(a, 250)
                                    },
                                    insert: function (a, b) {
                                        var e = h.createElement("<?php echo $antiblock_html_element; ?>"),
                                            d = h.body,
                                            c = d.childNodes.length,
                                            g = d.style,
                                            f = 0,
                                            k = 0;
                                        if ("<?php echo $antiblock_layer_id; ?>" == b) {
                                            e.setAttribute("id", b);
                                            g.margin = g.padding = 0;
                                            g.height = "100%";
                                            for (c = this.rand(c); f < c; f++) 1 == d.childNodes[f].nodeType && (k = Math.max(k, parseFloat(this.getStyle(d.childNodes[f]).zIndex) || 0));
                                            k && (e.style.zIndex = k + 1);
                                            c++
                                        }
                                        e.innerHTML = a;
                                        d.insertBefore(e, d.childNodes[c - 1])
                                    },
                                    displayMessage: function (a) {
                                        var b = this;
                                        a = "abisuq".charAt(b.rand(5));
                                        b.insert("<" + a + '><?php echo str_replace(array("\n", "'
                                            "), array('<br>', "
                                            '"), $antiblock_message); ?> <a href="<?php echo $antiblock_short_urls[ array_rand($antiblock_short_urls) ]; ?>">[ ? ]</a>' + ("</" + a + ">"), "<?php echo $antiblock_layer_id; ?>");
                                        h.addEventListener && b.deferExecution(function () {
                                            b.getElementBy("<?php echo $antiblock_layer_id; ?>").addEventListener("DOMNodeRemoved", function () {
                                                b.displayMessage()
                                            }, !1)
                                        })
                                    },
                                    i: function () {
                                        for (var a = "<?php echo implode(", ", array_merge(array_rand(array_flip(array('ad_img','head_ad','AD_half','Ad300x250','Ad3Left','AdAboveGame','AdAuth2','AdBar','AdBox300','AdBox728','AdContainer','AdFrame2','AdImage','AdTopLeader','Ad_976x105','Ad_Right1','AdsLeader','AdsRight','Ads_OV_BS','AdvArea','AdvertPanel','BannerAd','BigBoxAd','CONTENTAD','ContentAd2','CornerAd','DivAdB','FooterAd','GoogleAd3','GoogleAdTop','HALHouseAd','HeaderAD','LeftAd','LeftAdF1','RgtAd1','SponsoredAd','SponsorsAds','TextLinkAds','ThreadAd','Top468x60AD','TopBannerAd','WNAd41','ad-160','ad-2','ad-220x90-1','ad-300','ad-300-250','ad-300x60-1','ad-7','ad-abs-b-0','ad-article','ad-banner-1','ad-bar','ad-bigbox','ad-blade','ad-boxes','ad-btm','ad-center','ad-header','ad-in-post','ad-inner','ad-label2','ad-mrec2','ad-north','ad-section','ad-skin','ad-three','ad-top','ad-typ1','ad-uprrail1','ad02','ad125TR','ad160-2','ad260x60','ad300','ad300-title','ad300_250','ad300_a','ad300x600','ad32','ad468x60','ad728x90_1','adBanner','adBanner4','adBlock01','adColumn','adDailyDeal','adDiv300','adFixFooter','adHeaderTop','adLB','adLabel','adLink300','adMessage','adMpuBottom','adRight1','adSidebar','adSpace0','adSpace1','adSpace18','adSpace19','adSpace3','adSpace7','adSpace9','adTextRt','adThree','adTop1','adTwo','adWrapper1','ad_03','ad_160','ad_300c','ad_300misc','ad_300x250m','ad_4','ad_500','ad_500x150','ad_728x91','ad_8','ad_88x31','ad_940','ad_F','ad_H','ad_J','ad_L','ad_Middle1','ad_O','ad_banner','ad_branding','ad_cell','ad_close','ad_comments','ad_content','ad_div_top','ad_fb_circ','ad_flyrelax','ad_foot','ad_grp2','ad_halfpage','ad_header','ad_leader','ad_left_1','ad_links','ad_lnk','ad_lrec','ad_marker','ad_overlay','ad_overture','ad_panel','ad_rr_1','ad_rside','ad_sense','ad_small','ad_spot_a','ad_table','ad_tbl','ad_unit','adbarbox','adblock1','adbn','adclear','adclose','adcontent','adcontent1','add720','add_ciao2','adfooter','adfreead','adhide','adholder','adimg0','adjacency','adl_250x250','adlove','admid','adposition','adposition2','adrectangle','adrig','adrighthome','ads-160x600','ads-300','ads-468','ads-5','ads-block','ads-bottom','ads-header','ads-leader','ads-menu','ads-middle','ads-mpu','ads-rhs','ads-right','ads-wrapper','ads120','ads125','ads315','ads728x90_2','ads790','adsDiv3','adsHeading','adsTopLeft','adsZone1','ads_300','ads_300x250','ads_banner','ads_button','ads_horiz','ads_html1','ads_html2','ads_inner','ads_medrect','ads_video','adsbox','adsdiv300','adsense-new','adsense-tag','adsense-top','adsense6','adsense728','adsensempu','adshometop','adspace-728','adsplace4','adspot-2','adspot-c','adsquare2','adss','adstd','adtag5','adtaily','adtech_2','adtech_3','adtxt','adv-01','adv-300','adv-box','adv-midroll','adv-mpux','adv-preroll','adv-x36','adv-x37','adv130x195','adv300top','adv300x250','adv468x90','adv_mpu1','adv_sky','adver2','adver3','adver4','adver6','advert-1','advert-left','advert-sky','advert-text','advert2','advert_04','advert_mid','advert_yell','advertbox2','advertbox3','adverthome','adverti','advertise1','advertleft','advframe','adwin','adxMiddle5','adzbanner','adzerk2','articleAd','article_ads','aside_ad','banner468','bannerAdTop','bannerAds','banner_ads','banneradrow','bbo_ad1','bigAd1','bigBoxAd','bigadspace','blockAds','block_ad2','bn_ad','bnrAd','bnrhd468','body-ads','book-ad','botads2','bottom-ads','bottomMPU','bottom_ads','bottomad','box_ad','boxad4','bpAd','br_ad','btmad','btnAds','buttonAds','ch-ads','cnnTopAd','colAd','contentAd','content_ads','content_mpu','ct-ad-lb','ctl00_TopAd','cube_ad','dap300x250','dartad11','dartad17','dartad8','div-ad-flex','divAdLeft','divMenuAds','ds-mpu','elite-ads','externalAd','fl_hdrAd','floatads','foot-ad-1','foot-add','footer-adv','footer-affl','footerAdBox','footerAdd','footer_ads','footer_adv','footerads','fwAdBox','gallery_ads','game-ad','gamead','gglads','gog_ad','gooadtop','google-ads','googlead','googleadsrc','googtxtad','head1ad','headAds','head_ads','header-ads','headerAdv','headerad','hldhdAds','homeAd','homeMPU','hometopads','houseAd','hp-mpu','hp-store-ad','idDivAd','iframe_ad_2','inline-ad','internalads','iqadtile9','islandAdPan','kdz_ad1','kdz_ad2','large-ads','lb-ad','lbAdBarBtm','leaderAd','listing-ad','live-ad','logoAd2','long-ad-box','mBannerAd','mainPageAds','main_AD','main_rec_ad','marquee_ad','memberad','menu-ads','midbarad','middlead','mini-ad','mpuSlot','mpu_ad','mpu_ad2','mpubox','mpuholder','ms_ad','multi_ad','my-ads','navAdBanner','navbar_ads','nbaVid300Ad','nbabot728ad','new_topad','ng_rtcol_ad','ns_ad2','nuevo_ad','onespot-ads','online_ad','onpageads','outerAd300','plAds','popadwrap','post5_adbox','premium_ad','promoAds','pub468x60','rect-ad','rectangleAd','redirect-ad','related_ad','rh-ad','rhsads','right-ads','rightAd1','rightAd_rdr','rightad','rightads','rightbar-ad','rrAdWrapper','rr_ad','rt-ad468','rtmod_ad','sAdsBox','sb_ad_links','sbads-top','scoreAD','searchAds','secondad','self-ad','serveAd2','shortads','side-boxad','sideAdLarge','sideBarAd','sidead','sideadzone','sidebar-ad1','sidebar_ad','sidebar_ads','sidepad-ad','site_top_ad','skyAd','skybox-ad','skyline_ad','skyscrapeAd','smallads','smallerAd','some-ads','speeds_ads','spl_ad','spnAds','sponsAds','spons_links','sponsorAd','sponsorAd1','sponsorAd2','sponsorBar','spotadvert3','spotadvert5','story-ad','story_ad','swfAd1','takeover-ad','text-ads','textAd1','text_ads','textad','tgAD_imu_2','tgAD_imu_4','thistad','tmcomp_ad','toaster_ad','tobsideAd','top-ad-menu','top3_ads','topAdBanner','topAdSpace','topAdsG','topAdvBox','topAdvert','top_ad_zone','topadsblock','topadsdiv','topadvert','toptextad','ugly-ad','v_ad','vc_side_ad','vert-ads','videoAd','wall_advert','walltopad','weather-ad','x-houseads','y-ad-units','yahoo_ads','zztextad','tadsb.c')), 7), array("
                                            ad ", "
                                            ads ", "
                                            adsense "))); ?>".split(","), b = a.length, e = "", d = this, c = 0, g = "abisuq".charAt(d.rand(5)); c < b; c++) d.getElementBy(a[c]) || (e += "<" + g + ' id="' + a[c] + '"></' + g + ">");
                                        d.insert(e);
                                        d.deferExecution(function () {
                                            for (c = 0; c < b; c++)
                                                if (null == d.getElementBy(a[c]).offsetParent || "none" == d.getStyle(d.getElementBy(a[c])).display) return d.displayMessage("#" + a[c] + "(" + c + ")");
                                            d.nextFunction()
                                        })
                                    },
                                    s: function () {
                                        var a = {
                                            'pagead2.googlesyndic': 'google_ad_client',
                                            'js.adscale.de/getads': 'adscale_slot_id',
                                            'get.mirando.de/miran': 'adPlaceId'
                                        }, b = this,
                                            e = b.getElementBy(0, "script"),
                                            d = e.length - 1,
                                            c, g, f, k;
                                        h.write = null;
                                        for (h.writeln = null; 0 <= d; --d)
                                            if (c = e[d].src.substr(7, 20), a[c] !== m) {
                                                f = h.createElement("script");
                                                f.type = "text/javascript";
                                                f.src = e[d].src;
                                                g = a[c];
                                                l[g] = m;
                                                f.onload = f.onreadystatechange = function () {
                                                    k = this;
                                                    l[g] !== m || k.readyState && "loaded" !== k.readyState && "complete" !== k.readyState || (l[g] = f.onload = f.onreadystatechange = null, e[0].parentNode.removeChild(f))
                                                };
                                                e[0].parentNode.insertBefore(f, e[0]);
                                                b.deferExecution(function () {
                                                    if (l[g] === m) return b.displayMessage(f.src);
                                                    b.nextFunction()
                                                });
                                                return
                                            }
                                        b.nextFunction()
                                    },
                                    u: function () {
                                        var a = "/acc_random=,/ad-bottom.,/ad_width/ad,/adloader.,/adwrapper/ad,/peel1.js,/popunder1_,/sevenl_ad.,.468x60-,_638x200_".split(","),
                                            b = this,
                                            e = b.getElementBy(0, "img"),
                                            d, c;
                                        e[0] !== m && e[0].src !== m && (d = new Image, d.onload = function () {
                                            c = this;
                                            c.onload = null;
                                            c.onerror = function () {
                                                p = null;
                                                b.displayMessage(c.src)
                                            };
                                            c.src = e[0].src + "#" + a.join("")
                                        }, d.src = e[0].src);
                                        b.deferExecution(function () {
                                            b.nextFunction()
                                        })
                                    },
                                    nextFunction: function () {
                                        var a = p[0];
                                        a !== m && (p.shift(), this[a]())
                                    }
                                };
                                l. <? php echo $antiblock_layer_id; ?> = <? php echo $antiblock_layer_id; ?> = new n;
                                h.addEventListener ? l.addEventListener("load", n, !1) : l.attachEvent("onload", n)
                            })(window);
                        </script>
http://jsbeautifier.org/
 
Zuletzt bearbeitet:

Schumiel

Lieutenant
Ersteller dieses Themas
Dabei seit
Jan. 2010
Beiträge
670
Hast Du schon irgendwas selbst versucht außer den Code hier reinzupasten? Sieht für mich eher nach "Ich hab kein Bock mich dadurchzufriemeln, macht Ihr mal" aus...
Ja natürlich habe ich schon etwas versucht. Wenn ich jedoch all das was ich in den letzten 2 Stunden hier dokumentiere, was ich versucht habe, wird es den Beitragsrahmen sprengen.
 

Drexel

Lt. Commander
Dabei seit
Jan. 2012
Beiträge
1.191
Ohne es jetzt komplett analyisiert zu haben: Überall wo was mit PHP per echo ausgegeben wird, oder dass innerHTML mit Javascript überschrieben wird, den Code entfernen. Stattdessen an einer Stelle eine Variable setzen, Counter erhöhen, externe Webseite aufrufen oder was auch immer Du tun möchtest....
 

Hancock

Captain
Dabei seit
Nov. 2007
Beiträge
3.375
Also, wenn ich den Code richtig verstehe, hast du gar keine Chance, da irgendwas zu erkennen, weil dieser Werbeschnipsel darauf abzielt, nur die Nachricht anzuzeigen, aber das passiert clientseitig, bringt dir also nicht viel. Du könntest den Code so abwandeln, dass er dir als Werbebanner ein Bild schaltet (welches du auf dem Server so ausgibst, dass es jedes mal wieder geladen wird, z.B. durch eine eindeutige Id mit jedem Seitenaufruf), dadurch kannst du dann auf dem Server erkennen, wer Werbung blockt und wer sie durchlässt.
 
Top