块使用的Adblock型浏览器插件/扩展人们在网页上的所有内容? [英] Block all content on a web page for people using an Adblock-type browser add-on/extension?
问题描述
我想阻止使用广告拦截浏览器扩展(即Adblock Plus的为Firefox,Adthwart Chrome浏览器)。任何用户的所有我的内容
I wish to block ALL my content from any users using an ad-blocking browser extension (ie. Adblock Plus for Firefox, Adthwart for Chrome).
我如何达致这?是否有一个服务器端解决方案?客户端?
How can I acheive this? Is there a server-side solution? Client-side?
修改1
这个问题关于广告拦截浏览器扩展的检测:
Edit 1 This question regards the detection of ad-blocking browser extensions:
<一个href=\"http://stackoverflow.com/questions/1185067/detecting-adblocking-software\">http://stackoverflow.com/questions/1185067/detecting-adblocking-software
我很担心检测后的动作。
I'm concerned with post-detection action.
编辑2
重复的问题是矿难发生后问,所以我想我会链接到这里:
Edit 2 A duplicate question was asked after mine, so I thought I'd link to it here:
<一个href=\"http://stackoverflow.com/questions/2002403/$p$pvent-adblock-users-from-accessing-website\">http://stackoverflow.com/questions/2002403/$p$pvent-adblock-users-from-accessing-website
推荐答案
要检测如果用户拦截广告,所有你需要做的就是找到在广告中的JavaScript功能,并尝试测试它。不要紧,他们正在使用屏蔽的广告有什么方法。下面是它看起来像谷歌的Adsense广告:
To detect if the user is blocking ads, all you have to do is find a function in the ad javascript and try testing for it. It doesn't matter what method they're using to block the ad. Here's what it looks like for Google Adsense ads:
if(typeof(window.google_render_ad)=="undefined")
{
//They're blocking ads, do something else.
}
此方法这里概述: HTTP:// WWW。 metamorphosite.com/detect-web-popup-blocker-software-adblock-spam
这篇关于块使用的Adblock型浏览器插件/扩展人们在网页上的所有内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!