middleware to reject non-gemini requests #3

Closed
opened 2023-01-12 16:42:19 +00:00 by tjp · 0 comments
Owner

Gemini (weirdly IMO) allows for users to send gemini requests for non-gemini resources.

A gemini request is just <URL><CR><LF>, and nothing disallows the "scheme" component of the URL being "http" or "gopher", etc.

Probably the sanest default is to reject all these with 53 Proxy request refused, but configuration is stranger to allow these than denying with a middleware. So let's start there.

Gemini (weirdly IMO) allows for users to send gemini requests for non-gemini resources. A gemini request is just `<URL><CR><LF>`, and nothing disallows the "scheme" component of the URL being "http" or "gopher", etc. Probably the sanest default is to reject all these with `53 Proxy request refused`, but configuration is stranger to allow these than denying with a middleware. So let's start there.
tjp added the
enhancement
label 2023-01-14 18:05:29 +00:00
tjp added this to the v1.0 milestone 2023-01-14 18:06:27 +00:00
tjp added the
easy
label 2023-01-14 19:06:50 +00:00
tjp added this to the (deleted) project 2023-01-19 20:58:36 +00:00
tjp closed this issue 2023-01-28 22:36:59 +00:00
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tjp/gus#3
No description provided.