How to stop adblock plus blocking images in HTML page

前端 未结 4 1257
一整个雨季
一整个雨季 2020-12-05 09:50

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 t

4条回答
  •  不知归路
    2020-12-05 10:30

    1. I'm assuming that you're not talking about Adsense here but images hosted on your server and hard coded into your page.

    2. If so they're probably being blocked because of the file name and/or path.

    Adblock will block images

    • 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

    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.

提交回复
热议问题