Skip to content

Comment on Ask HN: Where do you host images for your blog or landing pages?parent

Comments

This is what I’ve done - if you want to be a bit more protective you can do some things to make sure they’re not hotlinked from elsewhere, but that’s up to you.

Me too.

I took it one step further: I don't have an image-heavy site, so I degrade the resolution to make images as small as possible, then embed them in the HTML as base64 strings. Very portable!

There are tools that will do this for you - some of the "static site" generators IIRC, or the minifiers.

You can even base64 the thumbnails and still have "click through" to the source image if desired.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.