forked from Furumi/furumi-web
Answer blocked host names like unreachable ones
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
402ad0a03a
commit
62141c0840
6 files changed
+121
-20
No files matched your search
@@ -140,6 +140,11 @@ other port, are refused. System proxy settings are not used for these
|
||||
requests. Users only see the kind of failure (address not allowed, could not
|
||||
connect, HTTP status, not a feed); the details, without the URL, are in the
|
||||
server log and, for scheduled refreshes, in the job log with the podcast id.
|
||||
"Address not allowed" is only said for what the URL itself shows (scheme,
|
||||
credentials, port, an IP address). A host name that resolves to a blocked
|
||||
address gets the same answer as a name that does not resolve or a server that
|
||||
does not answer ("could not connect"), so users cannot find out which names
|
||||
exist in the server's internal DNS.
|
||||
|
||||
Episode audio is streamed by the browser directly from the publisher. Some
|
||||
publishers cannot be played that way (plain HTTP while this server uses
|
||||
|
||||
+4
-1
@@ -116,7 +116,10 @@ The runtime around the store lives next to it in `src/podcasts/`:
|
||||
exactly the checked addresses, so a second DNS answer cannot be swapped in.
|
||||
IP literals are checked before connecting, redirects are followed manually
|
||||
(each hop checked, at most 5), and system proxies, cookies and `Referer`
|
||||
are disabled.
|
||||
are disabled. `GuardError::is_refusal` is true only for what the URL
|
||||
shows (scheme, credentials, port, a blocked IP literal); a name that
|
||||
resolves to a blocked address is reported to users like a transport
|
||||
failure, so the answers do not reveal internal DNS names.
|
||||
- `fetch.rs` — `FeedFetcher`: conditional GET (`If-None-Match`,
|
||||
`If-Modified-Since`), `Accept-Encoding: identity`, 32 MiB and 60 s limits,
|
||||
`Retry-After` on 429/503, the shared `music_dht` parser. Only a chain of
|
||||
|
||||
Reference in new issue
Block a user