mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-11-17 00:22:32 +01:00
Deprecated Referer
checking for hotlink prevention in favour of token verification system
This commit is contained in:
parent
086dcdc43f
commit
c8059eae03
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- [2020-07-04] Changed GitLab CI to build on every push irregardless of tagging by [@carbotaniuman].
|
||||
|
||||
### Deprecated
|
||||
- [2020-07-05] Deprecated `Referer` checking for hotlink prevention in favour of token verification system by [@lflare].
|
||||
|
||||
### Removed
|
||||
|
||||
|
@ -135,10 +135,7 @@ class ImageServer(
|
||||
}
|
||||
}
|
||||
|
||||
if (request.header("Referer")?.startsWith("https://mangadex.org") == false) {
|
||||
snapshot?.close()
|
||||
Response(Status.FORBIDDEN)
|
||||
} else if (snapshot != null && imageDatum != null) {
|
||||
if (snapshot != null && imageDatum != null) {
|
||||
request.handleCacheHit(sanitizedUri, getRc4(rc4Bytes), snapshot, imageDatum)
|
||||
} else {
|
||||
if (snapshot != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user