kmc
kmc
管理员
管理员
  • UID165
  • 注册日期2004-11-25
  • 最后登录2024-08-29
  • 发帖数9187
  • 经验398枚
  • 威望1点
  • 贡献值124点
  • 好评度41点
  • 忠实会员
  • 终身成就
  • 社区居民
阅读:15427回复:11

现在有很多网站可以反Adblock了,怎么办?

楼主#
更多 发布于:2010-02-06 05:32
这些网站会检测到你使用了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都满了。

谢谢
Waterfox Current和Firefox Nightly都用,逐渐走出XUL扩展依赖
xelnaga
千年狐狸
千年狐狸
  • UID1911
  • 注册日期2005-01-08
  • 最后登录2024-06-29
  • 发帖数1725
  • 经验85枚
  • 威望0点
  • 贡献值8点
  • 好评度5点
  • 社区居民
1楼#
发布于:2010-02-06 05:32
标题党

MOZILLA反对彻底干掉广告的
月神
火狐狸
火狐狸
  • UID30733
  • 注册日期2009-10-18
  • 最后登录2014-05-05
  • 发帖数216
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
2楼#
发布于:2010-02-06 05:32
kmc:这个小站是很艰难,也是为数不多能够真正帮你下载rs链接的,可是能不能让我每次给点几个广告,然后就进入一个干净点的界面得了。谢谢楼上各位的研究。回到原帖


这么干会被封gg账户的
kmc
kmc
管理员
管理员
  • UID165
  • 注册日期2004-11-25
  • 最后登录2024-08-29
  • 发帖数9187
  • 经验398枚
  • 威望1点
  • 贡献值124点
  • 好评度41点
  • 忠实会员
  • 终身成就
  • 社区居民
3楼#
发布于:2010-02-06 05:32
这个小站是很艰难,也是为数不多能够真正帮你下载rs链接的,可是能不能让我每次给点几个广告,然后就进入一个干净点的界面得了。谢谢楼上各位的研究。
Waterfox Current和Firefox Nightly都用,逐渐走出XUL扩展依赖
alanfly
千年狐狸
千年狐狸
  • UID31035
  • 注册日期2009-11-10
  • 最后登录2025-04-23
  • 发帖数2783
  • 经验595枚
  • 威望1点
  • 贡献值132点
  • 好评度108点
  • 社区居民
  • 最爱沙发
  • 忠实会员
4楼#
发布于:2010-02-06 05:32
斩尽杀绝也不行,但是不用又不行,有的网站太疯狂了。
fang5566
管理员
管理员
  • UID3719
  • 注册日期2005-03-07
  • 最后登录2025-09-08
  • 发帖数18502
  • 经验4858枚
  • 威望5点
  • 贡献值4324点
  • 好评度1118点
  • 社区居民
  • 最爱沙发
  • 忠实会员
  • 终身成就
5楼#
发布于:2010-02-06 05:32
一般都是无法直接检测是否使用ADP,都是放一个小图片,如果图片被过滤,就表明使用了ADP,然后弹出页面提示用户不能使用ADP,这样情况一般是使用ADP的白名单排除这个小图片,如果是在页面上面覆盖一个DIV提示用户使用了ADP,甚至可以直接过滤这个DIV
Firefox More than meets your experience
98118
禁止发言
禁止发言
  • UID75
  • 注册日期2004-11-23
  • 最后登录2018-05-22
  • 发帖数1269
  • 经验-128枚
  • 威望0点
  • 贡献值-356点
  • 好评度-215点
  • 社区居民
  • 忠实会员
6楼#
发布于:2010-02-06 05:32
用户被禁言,该主题自动屏蔽!
marion
火狐狸
火狐狸
  • UID28994
  • 注册日期2009-05-28
  • 最后登录2017-11-27
  • 发帖数283
  • 经验16枚
  • 威望0点
  • 贡献值8点
  • 好评度0点
  • 社区居民
7楼#
发布于:2010-02-06 05:32
eilern:在进入下载页面但还未转到提示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.

从这段文字看来,这个小站还是挺艰难的。。祝山姆大叔们多多支持它吧。
回到原帖



直接用 proxomitron 替换掉这段检测代码即可

另外,一般好网站的主人如果声泪俱下的请求我们支持其广告链接的话,我每次访问都会专门去点几下,然后成组关闭掉
zj45499
千年狐狸
千年狐狸
  • UID29472
  • 注册日期2009-07-03
  • 最后登录2014-10-06
  • 发帖数1158
  • 经验11枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
8楼#
发布于: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的页面。
试试用stylish把这两个id的height都设置为20,应该就可以了。
回到原帖

这么看来.还是不能直接检测你用没用ADP.是歪招啊  呵呵


月神
火狐狸
火狐狸
  • UID30733
  • 注册日期2009-10-18
  • 最后登录2014-05-05
  • 发帖数216
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
9楼#
发布于:2010-02-06 05:32
只是有的站而已,大部分还是可以过滤的,没必要那么极端一个广告都容不下,他们发展反adp,adp也是在发展的
eilern
狐狸大王
狐狸大王
  • UID22371
  • 注册日期2007-12-20
  • 最后登录2017-10-13
  • 发帖数468
  • 经验10枚
  • 威望1点
  • 贡献值20点
  • 好评度13点
  • 社区居民
10楼#
发布于: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.

从这段文字看来,这个小站还是挺艰难的。。祝山姆大叔们多多支持它吧。
ferret
千年狐狸
千年狐狸
  • UID21816
  • 注册日期2007-11-11
  • 最后登录2013-03-22
  • 发帖数1114
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
11楼#
发布于: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,应该就可以了。
游客

返回顶部