Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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:

    1. If your loading an image directly from my site then OK.
    2. If your loading an image from my site and my site is the referrer then also OK.
    3. 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. ??

    Thread Starter arjunjain16

    (@arjunjain16)

    Thanks. Sorry for bumping. Are there other ways I can load my images faster? Also, Could you please have a look at another thread I started?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use photon while disabling hotlinking for others?’ is closed to new replies.