如何在HTML页面中停止adblock和阻止图像 [英] How to stop adblock plus blocking images in HTML page
问题描述
我正在构建一个包含一些图像的简单HTML页面,我的FireFox最近安装了Adblock Plus,它会阻止这些图像。我在网上查看其他类似的页面并且它们没有阻止图像,所以它为什么会阻止我的?
I am building a simple HTML page with some images, my FireFox has Adblock Plus—recently installed— and it blocks these images. I look at other similar pages on the net and they are not blocking images so why is it blocking mine?
我不希望我的页面的访问者看不到图像他们碰巧在FireFox中安装了Adblock。
I do not want visitors to my page to not see images if they happen to have Adblock installed in FireFox.
在ab块开启的情况下允许图像显示的一些建议会很棒。我不想为自己的观看编写异常或任何内容我想设置我的页面,以便Adblock不会阻止图像。
Some advice to allow images to show whilst ab block is on would be great. I don’t want to write exceptions or anything for my own viewing I want to set my page so that Adblock doesn’t block the images.
推荐答案
-
我假设您不是在谈论Adsense,而是在您的服务器上托管并硬编码到您的页面中的图像。
I'm assuming that you're not talking about Adsense here but images hosted on your server and hard coded into your page.
如果是这样,他们可能因文件名和/或路径而被阻止。
If so they're probably being blocked because of the file name and/or path.
Adblock将阻止图片
Adblock will block images
- 文件名中包含常见广告尺寸,例如'myimage_720_90.png'或'myimage_300x250.jpg'。
- 在其路径(和文件名)中包含常见广告关键字,例如: 横幅广告, adv ,广告。
- 可能是其他分析CSS或HTML的过滤器
- with common ad dimensions in the file name, e.g. 'myimage_720_90.png' or 'myimage_300x250.jpg'.
- with common ad keywords in their path (and file name), e.g. banners, adv, ad.
- maybe other filters that analyse CSS or HTML
检查您的图像文件名并重命名以查看其运行方式,尝试使用'topwide.png或类似的通用名称来避免使用过滤器。
Check your image file names and rename some to see how it goes, try something generic like 'topwide.png or similar to avoid the filters.
这篇关于如何在HTML页面中停止adblock和阻止图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!