Project

General

Profile

Actions

Improvements #13881

closed
MV RM

Improvements #13877: Be less permissive to bots

Allow per-image (or resource) bot alternatives

Improvements #13881: Allow per-image (or resource) bot alternatives

Added by Matthias Van Ceulebroeck about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
07/29/2025
Due date:
% Done:

100%

Estimated time:

Description

Related to #13880, where we will allow a more fine-grained approach to the globally configurable alternative.
When requesting a ?request=resource from a bot session, this makes no sense, as they have no session context. This should be handled within the single bot session that requests the page.

Previously, we implemented a way to ensure that the image is rendered out on the server, and served to the client as a data blob, or SVG. The requests themselves are blocked from ever being responded to, so we do not potentially recursively serve pages to bots.
Now we also want to implement a way to override this specific behavior.

Roughly speaking this would be a WImage::setBotAlternative(url) and a WResource::setBotAlternative(url), which both take a URL (equivalent to WLink with LinkType::Url).

This will then be served as the response to the bot INSIDE the original page request.

RM Updated by Romain Mardulyn about 1 year ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn about 1 year ago Actions #2

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)

MV Updated by Matthias Van Ceulebroeck 12 months ago Actions #3

  • Assignee set to Matthias Van Ceulebroeck
  • % Done changed from 0 to 100

MV Updated by Matthias Van Ceulebroeck 12 months ago Actions #4

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn

MV Updated by Matthias Van Ceulebroeck 11 months ago Actions #5

  • Status changed from Implemented @Emweb to Implemented @Test

MV Updated by Matthias Van Ceulebroeck 11 months ago Actions #6

  • Status changed from Implemented @Test to Closed
Actions

Also available in: PDF Atom