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