Project

General

Profile

Actions

Improvements #13881

closed

Improvements #13877: Be less permissive to bots

Allow per-image (or resource) bot alternatives

Added by Matthias Van Ceulebroeck 3 months ago. Updated 19 days 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.

Actions #1

Updated by Romain Mardulyn 3 months ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
Actions #2

Updated by Romain Mardulyn 3 months ago

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

Updated by Matthias Van Ceulebroeck about 1 month ago

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

Updated by Matthias Van Ceulebroeck 29 days ago

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

Updated by Matthias Van Ceulebroeck 20 days ago

  • Status changed from Implemented @Emweb to Implemented @Test
Actions #6

Updated by Matthias Van Ceulebroeck 19 days ago

  • Status changed from Implemented @Test to Closed
Actions

Also available in: Atom PDF