Skip to content

Generated filenames trigger AdBlock blocking #9

@elescondite

Description

@elescondite

After spending hours wondering why only some images on a page were rendering, I discovered that AdBlock was blocking them.

It appears that the generated thumbnail filenames trigger AdBlock's scanner in some cases as they appear similar to typical banner ad filenames (with dimensions).

These 2 get blocked for example:

  • Ludlow_Group_Platinum_Marketing_Effectiveness_Award_For_GKD_Advertising_Campaign_2.thumb_zoomcrop_w150h150q85.jpg
  • 4specs-timber-rev.thumb_zoomcrop_w150h150q85.jpg

Off the top of my head, I am thinking that maybe we can hash the preset, dimensions and quality in some way that will still allow us to detect if a thumbnail has already been generated. For example:

4specs-timber-rev.thumb_zoomcrop_dzE1MGgxNTBxODU=.jpg

Just a simple base64 encode of "w150h150q85". Now it looks more like some cache-busting scheme rather than a 150x150 banner ad.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions