3 ms·
Run a reverse proxy to host all the user content on your own domain under https instead. Eg. https://yourdomain.com/usercontent/worldofcats.com/foobar.jpg ht
by londons_explore 10y ago
Run a reverse proxy to host all the user content on your own domain under https instead.
Eg. https://yourdomain.com/usercontent/worldofcats.com/foobar.jpg https://yourdomain.com/usercontent/worldofcats.com/foobar.jp...
There exist simple php scripts which can do that for you. Beware to sanitize the URL very well, and probably enforce file size rules.
- robryk 10y agoDon't do this on your domain. Have a separate domain for user content (and, if the content isn't public, better have many separate domains and distribute the content between them; maybe even have a per-user domain). Browsers can be convinced that a particular resource is an html page even if the content-type is wrong.