weserv / images

Source code of wsrv.nl (formerly images.weserv.nl), to be used on your own server(s).
https://wsrv.nl/
BSD 3-Clause "New" or "Revised" License
1.97k stars 193 forks source link

Netlify Blocked by Policy..? #399

Closed onkoe closed 10 months ago

onkoe commented 11 months ago

Hi! I ended up testing out your service on my blog! While it works with other images, I can't get it to play happily with my Netlify-hosted blog.

Images load as an invisible box, but when viewing this image, for example, I get the following:

{
    "status": "error",
    "code": 404,
    "message": "The hostname of the origin is unresolvable (DNS) or blocked by policy."
}

The URL used to view the image is: https://wsrv.nl/?url=https://barretts.club/images/milkv-duo-expand-fs/all-done.png

Is it correct that Netlify is being blocked? If so, could you please unblock it? Otherwise, I may need to correct my link. Sorry if that's the case! 🫣️

onkoe commented 11 months ago

Also, as it turns out, I can get the fallback images to load on the webpage if I remove the // prefix shown in the documentation. See this page to believe... :)

However, I'm not sure why it's blocked "manually." Any ideas?

kleisauke commented 11 months ago

Unfortunately we blocked TLD's like .club from the public service.

Please see https://github.com/weserv/images/issues/339#issuecomment-1096952128:

Due to multiple, and continuing, abuse of our service from many randomly generated cheap domains, we blocked all .cc .club .date .fun .pw .top .xxx .xyz domains on our public service. I'm really sorry for this, but the abuse was continuously using over 2 Gbit/s of our bandwidth, which we provide for free. Please consider changing domains to a normal TLD, or hosting the service yourself.

onkoe commented 11 months ago

Thanks for the quick response! Is there any chance you could whitelist my blogging site, barretts.club, amongst all the noise?

If that’s infeasible or otherwise difficult, I completely understand. Thank you for the great service! ☺️

kleisauke commented 10 months ago

@onkoe Whitelisted as requested, have fun!

As an aside, I like your blog post at https://barretts.club/posts/i-got-a-milkv-duo/. I'm still looking for a cheap RISC-V board that supports the latest RISC-V Vector (RVV) extension spec (version 1.0) because emulating that within QEMU is incredibly slow. :)

onkoe commented 10 months ago

Aww, thank you! From what I can tell, the Duo only supports RVV 0.7.1 on its big core, and other boards are still limited with RVV support overall.

Oh well! I did find one (less cheap) development board that has RVV 1.0 for about $50. That’s a lot for many projects, but if we're starting to see it ship to consumers, we'll probably get a more general design sometime soon!

Anyways, thanks for your help on this issue. Super happy to use the service! ☺️

onkoe commented 10 months ago

whoops forgot to close this. here you go! :)