How to use jetpack photon while disabling hotlinking for others?
Short answer: you can’t.
Slightly longer answer: When you implement hotlinking protection that is done on your webserver usually via .htaccess
rewrite rules. Those rules work like so:
- If your loading an image directly from my site then OK.
- If your loading an image from my site and my site is the referrer then also OK.
- If your referrer is someone that’s not my site then BANG! No image for them.
But when you create an image with Photon or any CDN then those protections do not apply. The image that the viewers browser is loading isn’t on your site and adding that protection on your site could break Photon or any CDN that doesn’t specifically support that feature.
My advice is to not use Photon for your images if that is something that concerns you. Oh, and also don’t bump. ??