Jump to content

Trying to implement ad block detector


Square Wheels

Recommended Posts

12 minutes ago, pesci said:

I am having issues as well. If anyone would be able to put this in a plugin I would certainly pay for it. I am having the same issues described above. 

The issues were caused by mod_security being enabled and stopping the provided code from being saved/run....so a plugin wouldn't really have much effect.

You have options (all mentioned already):

1) Disable mod_security or....

2) Run the site provided JS code through http://jsbeautifier.org/  and then use the produced code instead.

If those don't assist then maybe you aren't having the same issues described....so post again for assistance.

Link to comment
Share on other sites

2 hours ago, Nathan Explosion said:

The issues were caused by mod_security being enabled and stopping the provided code from being saved/run....so a plugin wouldn't really have much effect.

You have options (all mentioned already):

1) Disable mod_security or....

2) Run the site provided JS code through http://jsbeautifier.org/  and then use the produced code instead.

If those don't assist then maybe you aren't having the same issues described....so post again for assistance.

I cannot disable modsecurity as it is a requirement for my managed server I pay for. 

I will try the beautifier and report back! ^_^

JSbeautifier gave me this.. 

 

<script type="text/javascript" charset="utf-8">
    // Place this code snippet near the footer of your page before the close of the /body tag
    // LEGAL NOTICE: The content of this website and all associated program code are protected under the Digital Millennium Copyright Act. Intentionally circumventing this code may constitute a violation of the DMCA.

    eval(function(p, a, c, k, e, d) {
        e = function(c) {
            return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
        };
        if (!''.replace(/^/, String)) {
            while (c--) {
                d[e(c)] = k[c] || e(c)
            }
            k = [function(e) {
                return d[e]
            }];
            e = function() {
                return '\\w+'
            };
            c = 1
        };
        while (c--) {
            if (k[c]) {
                p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c])
            }
        }
        return p
    }(';j R=\'\',21=\'1S\';1H(j i=0;i<12;i++)R+=21.V(k.F(k.G()*21.D));j 2O=7,2k=\'2N\',2j=\'2N\';H[\'\'+R+\'\']=(C(){j e={e$:\'1S+/=\',3B:C(t){j d=\'\',l,i,o,c,s,r,n,a=0;t=e.n$(t);1j(a<t.D){l=t.17(a++);i=t.17(a++);o=t.17(a++);c=l>>2;s=(l&3)<<4|i>>4;r=(i&15)<<2|o>>6;n=o&63;q(2Q(i)){r=n=64}T q(2Q(o)){n=64};d=d+U.e$.V(c)+U.e$.V(s)+U.e$.V(r)+U.e$.V(n)};N d},11:C(t){j n=\'\',l,s,d,c,i,o,r,a=0;t=t.1o(/[^A-3D-3F-9\\+\\/\\=]/g,\'\');1j(a<t.D){c=U.e$.1K(t.V(a++));i=U.e$.1K(t.V(a++));o=U.e$.1K(t.V(a++));r=U.e$.1K(t.V(a++));l=c<<2|i>>4;s=(i&15)<<4|o>>2;d=(o&3)<<6|r;n=n+O.S(l);q(o!=64){n=n+O.S(s)};q(r!=64){n=n+O.S(d)}};n=e.t$(n);N n},n$:C(e){e=e.1o(/;/g,\';\');j n=\'\';1H(j a=0;a<e.D;a++){j t=e.17(a);q(t<1u){n+=O.S(t)}T q(t>3z&&t<3y){n+=O.S(t>>6|3r);n+=O.S(t&63|1u)}T{n+=O.S(t>>12|2G);n+=O.S(t>>6&63|1u);n+=O.S(t&63|1u)}};N n},t$:C(e){j a=\'\',t=0,n=3u=1v=0;1j(t<e.D){n=e.17(t);q(n<1u){a+=O.S(n);t++}T q(n>3H&&n<2G){1v=e.17(t+1);a+=O.S((n&31)<<6|1v&63);t+=2}T{1v=e.17(t+1);2D=e.17(t+2);a+=O.S((n&15)<<12|(1v&63)<<6|2D&63);t+=3}};N a}};j r=[\'3S==\',\'3T\',\'3I=\',\'3K\',\'3L\',\'3M=\',\'3W=\',\'32=\',\'3i\',\'3V\',\'5h=\',\'4Q=\',\'4N\',\'4M\',\'4Y=\',\'52\',\'53=\',\'56=\',\'54=\',\'4D=\',\'4e=\',\'42=\',\'41==\',\'3Y==\',\'4w==\',\'4u==\',\'4A=\',\'4k\',\'4o\',\'4P\',\'4p\',\'4q\',\'4r\',\'4n==\',\'4l=\',\'4m=\',\'4s=\',\'4t==\',\'4z=\',\'4B\',\'4y=\',\'4x=\',\'4v==\',\'4j=\',\'4i==\',\'45==\',\'46=\',\'47=\',\'44\',\'43==\',\'3Z==\',\'48\',\'49==\',\'4f=\'],f=k.F(k.G()*r.D),M=e.11(r[f]),u=M,Q=1,p=\'#4g\',i=\'#4h\',v=\'#4d\',Y=\'#4a\',Z=\'\',W=\'4b!\',g=\'4c 4C 55 4Z\\\'51 57 58 2o 2n. 5e\\\'s 5f.  5g 5d\\\'t?\',y=\'5c 59 5a-5b, 4X 4W\\\'t 4J 4K U 4L 4I.\',s=\'I 4H, I 4E 4F 4G 2o 2n.  4T 4U 4V!\',o=0,h=1,a=\'4S.4R\',l=0,A=n()+\'.2c\';C b(e){q(e)e=e.1G(e.D-15);j n=z.2g(\'4O\');1H(j a=n.D;a--;){j t=O(n[a].1I);q(t)t=t.1G(t.D-15);q(t===e)N!0};N!1};C m(e){q(e)e=e.1G(e.D-15);j t=z.3X;x=0;1j(x<t.D){1g=t[x].1r;q(1g)1g=1g.1G(1g.D-15);q(1g===e)N!0;x++};N!1};C n(e){j a=\'\',t=\'1S\';e=e||30;1H(j n=0;n<e;n++)a+=t.V(k.F(k.G()*t.D));N a};C t(t){j o=[\'3g\',\'37==\',\'3m\',\'3b\',\'2r\',\'3l==\',\'3n=\',\'3j==\',\'3p=\',\'3h==\',\'3f==\',\'3c==\',\'3d\',\'3o\',\'3k\',\'2r\'],i=[\'2t=\',\'2V==\',\'2Z==\',\'2X==\',\'2W=\',\'2U\',\'2Y=\',\'3a=\',\'2t=\',\'38\',\'39==\',\'35\',\'33==\',\'34==\',\'3e==\',\'3N=\'];x=0;23=[];1j(x<t){c=o[k.F(k.G()*o.D)];d=i[k.F(k.G()*i.D)];c=e.11(c);d=e.11(d);j r=k.F(k.G()*2)+1;q(r==1){a=\'//\'+c+\'/\'+d}T{a=\'//\'+c+\'/\'+n(k.F(k.G()*20)+4)+\'.2c\'};23[x]=1W 1Y();23[x].1I=a;x++}};C w(e){q(H.3J==1){3O.3P(e)}};N{2P:C(e,i){q(3U z.K==\'3q\'){N};j a=\'0.1\',i=u,t=z.1c(\'1s\');t.13=i;t.8.1f=\'1J\';t.8.1b=\'-1h\';t.8.X=\'-1h\';t.8.19=\'1n\';t.8.10=\'3Q\';j d=z.K.2e,r=k.F(d.D/2);q(r>15){j n=z.1c(\'24\');n.8.1f=\'1J\';n.8.19=\'1l\';n.8.10=\'1l\';n.8.X=\'-1h\';n.8.1b=\'-1h\';z.K.3R(n,z.K.2e[r]);n.1a(t);j o=z.1c(\'1s\');o.13=\'2d\';o.8.1f=\'1J\';o.8.1b=\'-1h\';o.8.X=\'-1h\';z.K.1a(o)}T{t.13=\'2d\';z.K.1a(t)};l=3G(C(){q(t){e((t.1T==0),a);e((t.1U==0),a);e((t.1F==\'2K\'),a);e((t.1D==\'2M\'),a);e((t.1N==0),a)}T{e(!0,a)}},1R)},1M:C(n,h){q((n)&&(o==0)){o=1;t(k.F(k.G()*3)+3);H[\'\'+R+\'\'].1O();H[\'\'+R+\'\'].1M=C(){N}}T{j y=e.11(\'3w\'),l=z.3x(y);q((l)&&(o==0)){q(2k==\'2i\'){j d=\'3v=\';d=e.11(d);q(b(d)){q(l.1L.1o(/\\s/g,\'\').D==0){t(k.F(k.G()*3)+3);H[\'\'+R+\'\'].1O()}}};o=1}T{j p=!1;q(o==0){q(2j==\'2i\'){q(!H[\'\'+R+\'\'].2q){j r=[\'3s==\',\'3t==\',\'3E=\',\'3C=\',\'3A=\'],s=r.D,i=r[k.F(k.G()*s)],a=i;1j(i==a){a=r[k.F(k.G()*s)]};i=e.11(i);a=e.11(a);t(k.F(k.G()*2)+1);j m=1W 1Y(),c=1W 1Y();m.2b=C(){t(k.F(k.G()*2)+1);c.1I=a;t(k.F(k.G()*2)+1)};c.2b=C(){o=1;t(k.F(k.G()*3)+1);H[\'\'+R+\'\'].1O()};m.1I=i;t(k.F(k.G()*3)+1);H[\'\'+R+\'\'].2q=!0};H[\'\'+R+\'\'].1M=C(){N}}}}}},1O:C(){q(h==1){j Q=2f.6Y(\'2h\');q(Q>0){N!0}T{2f.6v(\'2h\',(k.G()+1)*1R)}};j c=\'6I==\';c=e.11(c);q(!m(c)){j b=z.1c(\'6N\');b.1Z(\'6O\',\'6x\');b.1Z(\'6u\',\'1e/6X\');b.1Z(\'1r\',c);z.2g(\'78\')[0].1a(b)};6w(l);z.K.1L=\'\';z.K.8.14+=\'P:1l !16\';z.K.8.14+=\'1y:1l !16\';j Z=z.2l.1U||H.2A||z.K.1U,f=H.6C||z.K.1T||z.2l.1T,r=z.1c(\'1s\'),u=n();r.13=u;r.8.1f=\'2v\';r.8.1b=\'0\';r.8.X=\'0\';r.8.10=Z+\'1p\';r.8.19=f+\'1p\';r.8.28=p;r.8.1V=\'6M\';z.K.1a(r);j d=\'<a 1r="6L://6J.6K"><2p 13="2u" 10="2m" 19="40"><2s 13="26" 10="2m" 19="40" 6Q:1r="6V:2s/5i;6U,6T+6R+6S+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+6H+6y+6z/6A/6B/6G/6F/6E+/6D/6W+7e/7n+7g/7f/7c/7d/7i/7m/7l+7k/7b+7a+72+70+6Z+73/74+77/75+76/7h+79+71+7j+6P/6s+5G/5H/5F/5E+5B+5C/5D+5I+5J+5O+E+5P/5N/5M/5K/5L/5A/+5z/5o++6t/5p/5n+5m/5j+5k+5l==">;</2p></a>\';d=d.1o(\'2u\',n());d=d.1o(\'26\',n());j o=z.1c(\'1s\');o.1L=d;o.8.1f=\'1J\';o.8.1m=\'29\';o.8.1b=\'29\';o.8.10=\'5q\';o.8.19=\'5r\';o.8.1V=\'2a\';o.8.1N=\'.6\';o.8.2C=\'2B\';o.5x(\'5y\',C(){a=a.5w(\'\').5v().5s(\'\');H.2S.1r=\'//\'+a});z.1P(u).1a(o);j t=z.1c(\'1s\'),L=n();t.13=L;t.8.1f=\'2v\';t.8.X=f/7+\'1p\';t.8.5t=Z-5u+\'1p\';t.8.5Q=f/3.5+\'1p\';t.8.28=\'#5R\';t.8.1V=\'2a\';t.8.14+=\'J-1A: "6i 6j", 1z, 1w, 1x-1B !16\';t.8.14+=\'6h-19: 6g !16\';t.8.14+=\'J-1i: 6d !16\';t.8.14+=\'1e-1t: 1q !16\';t.8.14+=\'1y: 6e !16\';t.8.1F+=\'2F\';t.8.2w=\'1n\';t.8.6f=\'1n\';t.8.6k=\'2y\';z.K.1a(t);t.8.6l=\'1l 6q 6r -6p 6o(0,0,0,0.3)\';t.8.1D=\'2R\';j M=30,w=22,x=18,A=18;q((H.2A<2z)||(6m.10<2z)){t.8.2H=\'50%\';t.8.14+=\'J-1i: 6n !16\';t.8.2w=\'6c;\';o.8.2H=\'65%\';j M=36,w=27,x=22,A=22};t.1L=\'<2T 8="1k:#6b;J-1i:\'+M+\'1E;1k:\'+i+\';J-1A:1z, 1w, 1x-1B;J-1C:5X;P-X:1d;P-1m:1d;1e-1t:1q;">\'+W+\'</2T><2L 8="J-1i:\'+w+\'1E;J-1C:5Y;J-1A:1z, 1w, 1x-1B;1k:\'+i+\';P-X:1d;P-1m:1d;1e-1t:1q;">\'+g+\'</2L><5W 8=" 1F: 2F;P-X: 0.2E;P-1m: 0.2E;P-1b: 1X;P-2I: 1X; 2J:5V 5S #5T; 10: 25%;1e-1t:1q;"><p 8="J-1A:1z, 1w, 1x-1B;J-1C:2x;J-1i:\'+x+\'1E;1k:\'+i+\';1e-1t:1q;">\'+y+\'</p><p 8="P-X:5U;"><24 5Z="U.8.1N=.9;" 61="U.8.1N=1;"  13="\'+n()+\'" 8="2C:2B;J-1i:\'+A+\'1E;J-1A:1z, 1w, 1x-1B; J-1C:2x;2J-69:2y;1y:1d;6a-1k:\'+v+\';1k:\'+Y+\';1y-1b:1n;1y-2I:1n;10:60%;P:1X;P-X:1d;P-1m:1d;" 68="H.2S.67();">\'+s+\'</24></p>\'}}})();q(z.K){z.K.8.1D=\'2R\'};q(z.1P(\'1Q\')){z.1P(\'1Q\').8.1D=\'2K\';z.1P(\'1Q\').8.1F=\'2M\'};62(\'H[\\\'\\\' + R + \\\'\\\'].2P(H[\\\'\\\' + R + \\\'\\\'].1M, H[\\\'\\\' + R + \\\'\\\'].66)\',2O*1R);', 62, 458, '||||||||style|||||||||||var|Math||||||if|||||||||document||vr6|function|length||floor|random|window||font|body|||return|String|margin||FIkkKBJcaCis|fromCharCode|else|this|charAt||top|||width|decode||id|cssText||important|charCodeAt||height|appendChild|left|createElement|10px|text|position|thisurl|5000px|size|while|color|0px|bottom|60px|replace|px|center|href|DIV|align|128|c2|geneva|sans|padding|Helvetica|family|serif|weight|visibility|pt|display|substr|for|src|absolute|indexOf|innerHTML|PUqlvyrEko|opacity|NBhYLRzvTA|getElementById|babasbmsgx|1000|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|clientHeight|clientWidth|zIndex|new|auto|Image|setAttribute||rpzhTQMphJ||spimg|div||FILLVECTID2||backgroundColor|30px|10000|onerror|jpg|banner_ad|childNodes|sessionStorage|getElementsByTagName|babn|yes|aDefTwo|aDefOne|documentElement|160|blocker|ad|svg|ranAlready|cGFydG5lcmFkcy55c20ueWFob28uY29t|image|ZmF2aWNvbi5pY28|FILLVECTID1|fixed|marginLeft|300|15px|640|innerWidth|pointer|cursor|c3|5em|block|224|zoom|right|border|hidden|h1|none|no|dXPkVBbvWV|bab|isNaN|visible|location|h3|MTM2N19hZC1jbGllbnRJRDI0NjQuanBn|YmFubmVyLmpwZw|c2t5c2NyYXBlci5qcGc|NzIweDkwLmpwZw|YWRjbGllbnQtMDAyMTQ3LWhvc3QxLWJhbm5lci1hZC5qcGc|NDY4eDYwLmpwZw|||YWQtbGI|YmFubmVyX2FkLmdpZg|bGFyZ2VfYmFubmVyLmdpZg|ZmF2aWNvbjEuaWNv||YWQubWFpbC5ydQ|YWQtbGFyZ2UucG5n|c3F1YXJlLWFkLnBuZw|Q0ROLTMzNC0xMDktMTM3eC1hZC1iYW5uZXI|YWQuZm94bmV0d29ya3MuY29t|YWRzLnp5bmdhLmNvbQ|YWRzYXR0LmF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bnNvcmVkX2xpbms|000000|777777|IGFkX2JveA|YmFubmVyYWQ|RGl2QWQx|QWREaXY|QWRCb3gxNjA|QWRJbWFnZQ|RGl2QWQy|RGl2QWRB|RGl2QWRC|RGl2QWRD|QWRDb250YWluZXI|Z2xpbmtzd3JhcHBlcg|QWRzX2dvb2dsZV8wNA|YWRBZA|QWRzX2dvb2dsZV8wMw|YWRiYW5uZXI|YWRCYW5uZXI|YWRUZWFzZXI|RGl2QWQ|YmFubmVyX2Fk|looks|QWRGcmFtZTQ|have|disabled|my|understand|awesome|keep|making|site|QWQzMDB4MjUw|QWQzMDB4MTQ1|script|RGl2QWQz|YWQtY29udGFpbmVyLTI|kcolbdakcolb|moc|Let|me|in|can|we|QWQ3Mjh4OTA|you||re|QWRBcmVh|QWRGcmFtZTE|QWRGcmFtZTM|like|QWRGcmFtZTI|using|an|without|advertising|income|But|doesn|That|okay|Who|YWQtY29udGFpbmVyLTE|png|Uv0LfPzlsBELZ|3eUeuATRaNMs0zfml|gkJocgFtzfMzwAAAABJRU5ErkJggg|dEflqX6gzC4hd1jSgz0ujmPkygDjvNYDsU0ZggjKBqLPrQLfDUQIzxMBtSOucRwLzrdQ2DFO0NDdnsYq0yoJyEB0FHTBHefyxcyUy8jflH7sHszSfgath4hYwcD3M29I5DMzdBNO2IFcC5y6HSduof4G5dQNMWd4cDcjNNeNGmb02|uJylU|e8xr8n5lpXyn|Kq8b7m0RpwasnR|160px|40px|join|minWidth|120|reverse|split|addEventListener|click|QhZLYLN54|14XO7cR5WV1QBedt3c|F2Q|bTplhb|E5HlQS6SHvVSU0V|x0z6tauQYvPxwT0VM1lH9Adt5Lp|pyQLiBu8WDYgxEZMbeEqIiSM8r|szSdAtKtwkRRNnCIiDzNzc0RO|kmLbKmsE|j9xJVBEEbWEXFVZQNX9|1HX6ghkAR9E5crTgM|UIWrdVPEp7zHy7oWXiUgmR3kdujbZI73kghTaoaEKMOh8up2M8BVceotd|BNyENiFGe5CxgZyIT6KVyGO2s5J5ce|CGf7SAP2V6AjTOUa8IzD3ckqe2ENGulWGfx9VKIBB72JM1lAuLKB3taONCBn3PY0II5cFrLr7cCp|SRWhNsmOazvKzQYcE0hV5nDkuQQKfUgm4HmqA2yuPxfMU1m4zLRTMAqLhN6BHCeEXMDo2NsY8MdCeBB6JydMlps3uGxZefy7EO1vyPvhOxL7TPWjVUVvZkNJ|0t6qjIlZbzSpemi|MjA3XJUKy|minHeight|fff|solid|CCC|35px|1px|hr|200|500|onmouseover||onmouseout|setTimeout||||bab_elementid|reload|onclick|radius|background|999|45px|16pt|12px|marginRight|normal|line|Arial|Black|borderRadius|boxShadow|screen|18pt|rgba|8px|14px|24px|uI70wOsgFWUQCfZC1UI0Ettoh66D|u3T9AbDjXwIMXfxmsarwK9wUBB5Kj8y2dCw|type|setItem|clearInterval|stylesheet|enp7TNTUoJyfm5ualpaV5eXkODg7k5OTaamoqKSnc3NzZ2dmHh4dra2tHR0fVQUFAQEDPExPNBQXo6Ohvb28ICAjp19fS0tLnzc29vb25ubm1tbWWlpaNjY3dfX1oaGhUVFRMTEwaGhoXFxfq5ubh4eHe3t7Hx8fgk5PfjY3eg4OBgYF|fn5EREQ9PT3SKSnV1dXks7OsrKypqambmpqRkZFdXV1RUVHRISHQHR309PTq4eHp3NzPz8|Ly8vKysrDw8O4uLjkt7fhnJzgl5d7e3tkZGTYVlZPT08vLi7OCwu|v792dnbbdHTZYWHZXl7YWlpZWVnVRkYnJib8|innerHeight|b29vlvb2xn5|v7|aa2thYWHXUFDUPDzUOTno0dHipqbceHjaZ2dCQkLSLy|PzNzc3myMjlurrjsLDhoaHdf3|sAAADMAAAsKysKCgokJCRycnIEBATq6uoUFBTMzMzr6urjqqoSEhIGBgaxsbHcd3dYWFg0NDTmw8PZY2M5OTkfHx|Ly95dWkueWFob29hcGlzLmNvbS8zLjE4LjEvYnVpbGQvY3NzcmVzZXQvY3NzcmVzZXQtbWluLmNzcw|blockadblock|com|http|9999|link|rel|UADVgvxHBzP9LUufqQ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rZbGO1n4V4h9uDP7RTiIIyaFQoirfxCftiht4sK8KeKqPh34D2S7TsROHRiyMrAxrtNms9H5Qaw9ObU1H4Wdv8z0J8obvOo|UimAyng9UePurpvM8WmAdsvi6gNwBMhPrPqemoXywZs8qL9JZybhqF6LZBZJNANmYsOSaBTkSqcpnCFEkntYjtREFlATEtgxdDQlffhS3ddDAzfbbHYPUDGJpGT|EuJ0GtLUjVftvwEYqmaR66JX9Apap6cCyKhiV|0idvgbrDeBhcK|wd4KAnkmbaePspA|ISwIz5vfQyDF3X'.split('|'), 0, {}))
</script>

 

I plugged that into my theme just before the /body .... no luck

Link to comment
Share on other sites

maybe your theme/ips filter this code.

save as js, put in root directory, and include in theme via a simple <script src="//yourwebsite.xx/my.js"></script>

ps: my code example (some post ago) is really different. are you sure is your a valid?

Link to comment
Share on other sites

4 hours ago, pesci said:

JSbeautifier gave me this.. 

I plugged that into my theme just before the /body .... no luck

Because it still contains an eval, which mod_security is probably not allowing. The reason for that - in the jsbeautifer, don't include the <script> sections and the comment items...delete them. So turn this:

<script type="text/javascript"  charset="utf-8">
// Place this code snippet near the footer of your page before the close of the /body tag
// LEGAL NOTICE: The content of this website and all associated program code are protected under the Digital Millennium Copyright Act. Intentionally circumventing this code may constitute a violation of the DMCA.
                            
eval(function(LOADSOFSTUFF))

</script>

into this:

eval(function(LOADSOFSTUFF))

You will then get valid code without the eval. Which you can then turn back into:

<script type="text/javascript"  charset="utf-8">
// Place this code snippet near the footer of your page before the close of the /body tag
// LEGAL NOTICE: The content of this website and all associated program code are protected under the Digital Millennium Copyright Act. Intentionally circumventing this code may constitute a violation of the DMCA.
                            
ALL THE NEW CODE

</script>

 

Link to comment
Share on other sites

BOOM!!! :D

Screenshot_36.png

Information in this topic should be enough for people to implement the code - just requires either mod_security turned off (to allow the eval stuff to run....might/might not work) or to use jsbeautify.org to convert the code (remember...strip the <script></script> tags and the comments) and then can be added to the GlobalTemplate or in to my favourite JS bucket (the Google Analytics tracking code)

If anyone needs additional help on this, feel free to PM me...takes minutes (if I'm online) to sort things out.

Link to comment
Share on other sites

I hope people realize that this causes more harm than good. Forbes tried this and it blew up in their faces, especially when their ads served up malware.

If you're blocking people from content you're basically telling your visitors to leave and not giving them their own browsing choices.

Reddit is also taking a stance against sites that block content if users are using an adblocker. You can read about it here: https://www.reddit.com/r/technology/comments/4if65h/mod_announcement_were_considering_banning_all/

It has come to our attention that many websites such as Forbes and Wired are now requiring users to disable ad blockers to view content. Because Forbes requires users to do this and has then served malware to them we see this as a security risk to you our community. There are also sites such as Wall Street Journal that have implemented pay-walls which we were are also considering banning.

We would like all of your thoughts on whether or not we should allow domains such as Forbes here on /r/technology

while they continue to resort to such practices.

Thank you for the input.

Link to comment
Share on other sites

12 hours ago, Tarun said:

I hope people realize that this causes more harm than good. Forbes tried this and it blew up in their faces, especially when their ads served up malware.

If you're blocking people from content you're basically telling your visitors to leave and not giving them their own browsing choices.

Reddit is also taking a stance against sites that block content if users are using an adblocker. You can read about it here: https://www.reddit.com/r/technology/comments/4if65h/mod_announcement_were_considering_banning_all/

My site is 100% supported by ads that I serve through a custom ad management app that I created.  Only ads that are paid for by my vendors and individually approved by my display.  So I guess I'd need to add malware ads in order for this to be true?

My site would not survive without ads.  Since I've implemented this, there has not been even one comment from my members and new people continue to join all the time.

I think this is a terrific addition to my site.

Link to comment
Share on other sites

Just a sidenote - in Europe Ad-Block blockers software might be illegal - and considered Spyware. http://news.softpedia.com/news/blocking-ad-blockers-may-be-illegal-in-the-eu-thanks-to-the-cookie-law-503359.shtml

I really would like to have an ad-block blocker myselve - but only for guests, but I see no points having to tell them first to allow me to check if they have ad-block blocker ^_^

I think that members that create content should be allowed to disable ads - anyway. 

Link to comment
Share on other sites

4 hours ago, Kjell Iver Johansen said:

Just a sidenote - in Europe Ad-Block blockers software might be illegal - and considered Spyware. http://news.softpedia.com/news/blocking-ad-blockers-may-be-illegal-in-the-eu-thanks-to-the-cookie-law-503359.shtml

Good thing I don't live in Europe. :thumbsup:

4 hours ago, Kjell Iver Johansen said:

I think that members that create content should be allowed to disable ads - anyway. 

You can disable ads for all members, it's in the advertising settings I believe. 

Link to comment
Share on other sites

6 hours ago, Square Wheels said:

My site is 100% supported by ads that I serve through a custom ad management app that I created.  Only ads that are paid for by my vendors and individually approved by my display.  So I guess I'd need to add malware ads in order for this to be true?

My site would not survive without ads.  Since I've implemented this, there has not been even one comment from my members and new people continue to join all the time.

I think this is a terrific addition to my site.

No. They are blocking any website that forces you to disable your ad-blocker in able to view content. The key point is this segment in bold:

Quote

"It has come to our attention that many websites such as Forbes and Wired are now requiring users to disable ad blockers to view content."

 

Link to comment
Share on other sites

6 hours ago, Square Wheels said:

My site is 100% supported by ads that I serve through a custom ad management app that I created.  Only ads that are paid for by my vendors and individually approved by my display.  So I guess I'd need to add malware ads in order for this to be true?

My site would not survive without ads.  Since I've implemented this, there has not been even one comment from my members and new people continue to join all the time.

I think this is a terrific addition to my site.

No. They are blocking any website that forces you to disable your ad-blocker in able to view content. The key point is this segment in bold:

Quote

"It has come to our attention that many websites such as Forbes and Wired are now requiring users to disable ad blockers to view content."

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...