So does the website itself, though, right?
What makes this URL an API?
Do they disclose it as free use anywhere?
duckduckgo, icon.horse and favicongrabber.com also have their own APIs for this
I bet there is a way this could be abused in order to proxy/tunnel arbitrary requests via google IPs. Even if it’s slow and must be done through e.g. PNG image data and dynamic subdomains or something, it would still be possible.
Why would you ever want to route your request like this through a third party especially an ad company? To get the favicon of a site you just request
www.example.com/favicon.ico
.It doesn’t have to be an
*.ico
file. So you might need to try different file extensions.So you might need to try different file extensions.
No, you don’t. The HTTP response header will tell you what type it is. Anything using file name suffixes to determine content type on the web (unless it’s just a fallback guess) is broken.