Improvements #13881
closedImprovements #13877: Be less permissive to bots
Allow per-image (or resource) bot alternatives
100%
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.
Updated by Romain Mardulyn 3 months ago
- Status changed from New to InProgress
 - Assignee set to Romain Mardulyn
 
Updated by Romain Mardulyn 3 months ago
- Status changed from InProgress to Review
 - Assignee deleted (
Romain Mardulyn) 
Updated by Matthias Van Ceulebroeck about 1 month ago
- Assignee set to Matthias Van Ceulebroeck
 - % Done changed from 0 to 100
 
Updated by Matthias Van Ceulebroeck 29 days ago
- Status changed from Review to Implemented @Emweb
 - Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
 
Updated by Matthias Van Ceulebroeck 20 days ago
- Status changed from Implemented @Emweb to Implemented @Test
 
Updated by Matthias Van Ceulebroeck 19 days ago
- Status changed from Implemented @Test to Closed