Menu

1 / 2

wsrv.nl and robots.txt: every image in my sitemap was blocked for Google

DEV Community: nextjs·Mohamed Gado·5 days ago
#nrhuv96t
#devtonextjs#devto#dev#robots#wsrv
Long article (843 words) — no AI summary yet.
Reading 0:00
15s threshold

Search Console read all four sitemaps of Reely with zero errors, so for weeks I logged them as clean. The warnings column next to it said something else: a warning on every single image entry. 787 of 787 in the core sitemap, 7,336 of 7,337 for movies, 5,772 of 5,772 for TV shows. The cause was the image proxy. Every poster URL went through wsrv.nl , and wsrv.nl's robots.txt disallows any URL with a query string. A wsrv URL is nothing but a query string, so Googlebot-Image was not allowed to fetch a single one.

Why the image host's robots.txt matters

Google applies robots.txt per host. Your own robots.txt can allow everything, and it still says nothing about images served from another domain. When Googlebot-Image reads <image:image> in your sitemap, or the image field in your JSON-LD, it checks the robots.txt of the host in that URL before it fetches.

Reely gets its posters from TMDB and resizes them through wsrv.nl, a free image proxy.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.