small adjustment to ph thumb proxy
This commit is contained in:
@@ -926,8 +926,8 @@ impl PornhubThumbPolicy {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
let Some(host) = url.host_str() else { return false; };
|
let Some(host) = url.host_str() else { return false; };
|
||||||
// Allow official Pornhub hosts and their CDN hosts
|
// Only allow the specific Pornhub CDN host used for thumbnails
|
||||||
host.contains("phncdn") || host.ends_with("pornhub.com")
|
host.eq_ignore_ascii_case("pix-cdn77.phncdn.com")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user