阅读:15425回复:11
现在有很多网站可以反Adblock了,怎么办?
这些网站会检测到你使用了ABP,具体技术不知。搜索了一下,有说用js脚本的,有说用inline js脚本来防过滤的。
反击的方法,一是过滤这些js的网址,如果是inline js,说要用元素隐藏规则。但是我在下面这个网站试了,找不到在哪里出现了检测ABP的地方 <!-- w --><a class="postlink" href="http://www.rapid8.com">www.rapid8.com</a><!-- w --> 这是一个帮助下载Rapidshare链接的网站,大家可以用某一个RS链接试试,在Your URL/Link Here里面填入 http://rapidshare.com/files/212075517/Bubble_Pack__31_.rar 然后点Download,会出来一个loading的进度条,然后马上跳转到警告页面,告诉你禁用ABP。 不是我不想支持这个网站但是它的广告实在是太多了,我CPU都满了。 谢谢 |
|
|
1楼#
发布于:2010-02-06 05:32
download后会先跳转到stage2.php,然后有代码检测广告div的高度,
<script type="text/javascript"> if (document.getElementById('addd').clientHeight < 20) { location.href = 'http://rapid8.com/why.php'; } else if (document.getElementById('adddd').clientHeight < 20) { location.href = 'http://rapid8.com/why.php'; } </script> 如果高度太低的话就会被跳转到提示禁用adp的页面。 试试用stylish把这两个id的height都设置为20,应该就可以了。 |
|
2楼#
发布于:2010-02-06 05:32
在进入下载页面但还未转到提示abp的页面时迅速按下stop键就能停留在下载页面上。
此时查看源代码发现在最末尾有这样一段代码: <script type="text/javascript"> if (document.getElementById('addd').clientHeight < 20) { location.href = 'http://rapid8.com/why.php'; } else if (document.getElementById('adddd').clientHeight < 20) { location.href = 'http://rapid8.com/why.php'; } </script> 也就是说它是在页面加载完毕后检查#addd和#adddd这两个元素的高度。如果小于20则判断用户使用了广告过滤功能。 事实上,在我这里abp并未过滤这两处广告,而是noscript禁用了这两个地方的脚本,因而过滤了广告。 所以说此网站并非直接反abp,而是反广告过滤,无论你用的是什么方法。 我禁用了abp和noscript后,在userContent.css中写了 #addd, #addd { display:none !important; } 后,依然被引导到错误页面。 这个网站的解决办法是在页面完全载入前就按stop键。因为反广告过滤代码是在页面源代码最末尾的。 或者,载入页面过程中就让 noscript “临时允许本页面所有对象”吧。 不过。。 Rapid8.com needs your HELP - Be Considerate! Rapid8 isn't a commercial website. It's a community creation, entirely created and funded by people like you. By blocking Advertisement and ignoring them, you're simply trying to kill us. Yes we're serious. Our server cost more than USD$800, if we're not able to pay them, Rapid8 would be closed down. In order to keep the content of this website free we must display advertisements on it. If you want to view the content of this website, the author wishes that you to disable Adblock, NoScript or any other blocking software you may have before browsing the website. So be considerare - enable them, at least for Rapid8.com. 从这段文字看来,这个小站还是挺艰难的。。祝山姆大叔们多多支持它吧。 |
|
3楼#
发布于:2010-02-06 05:32
只是有的站而已,大部分还是可以过滤的,没必要那么极端一个广告都容不下,他们发展反adp,adp也是在发展的
|
|
4楼#
发布于:2010-02-06 05:32
ferret:download后会先跳转到stage2.php,然后有代码检测广告div的高度,<script type="text/javascript"> if (document.getElementById('addd').clientHeight < 20) { location.href = 'http://rapid8.com/why.php'; } else if (document.getElementById('adddd').clientHeight < 20) { location.href = 'http://rapid8.com/why.php'; } </script> 这么看来.还是不能直接检测你用没用ADP.是歪招啊 呵呵 |
|
|
5楼#
发布于:2010-02-06 05:32
eilern:在进入下载页面但还未转到提示abp的页面时迅速按下stop键就能停留在下载页面上。 直接用 proxomitron 替换掉这段检测代码即可 另外,一般好网站的主人如果声泪俱下的请求我们支持其广告链接的话,我每次访问都会专门去点几下,然后成组关闭掉 |
|
6楼#
发布于:2010-02-06 05:32
用户被禁言,该主题自动屏蔽! |
|
7楼#
发布于:2010-02-06 05:32
一般都是无法直接检测是否使用ADP,都是放一个小图片,如果图片被过滤,就表明使用了ADP,然后弹出页面提示用户不能使用ADP,这样情况一般是使用ADP的白名单排除这个小图片,如果是在页面上面覆盖一个DIV提示用户使用了ADP,甚至可以直接过滤这个DIV
|
|
|
8楼#
发布于:2010-02-06 05:32
斩尽杀绝也不行,但是不用又不行,有的网站太疯狂了。
|
|
9楼#
发布于:2010-02-06 05:32
这个小站是很艰难,也是为数不多能够真正帮你下载rs链接的,可是能不能让我每次给点几个广告,然后就进入一个干净点的界面得了。谢谢楼上各位的研究。
|
|
|
10楼#
发布于:2010-02-06 05:32
|
|
11楼#
发布于:2010-02-06 05:32
标题党
MOZILLA反对彻底干掉广告的 |
|