• Resolved nickaster

    (@nickaster)


    This is a rather complicated question –

    I use Amazon cloud to store all my images across 10 CDNs – cdn1.mydomain.com, cdn2.mydomain.com etc…

    It works great.

    Lately I’ve had some problems with people hotlinking my images which irritates me. It’s no problem to protect them if I stick this in the wp-content/uploads directory as an .htaccess file:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

    The problem, of course is that cdnX.mydomain.com won’t get blocked. Does anyone know if it’s possible to block these? Maybe this is some setting at Amazon and nothing to do with my site?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Protecting my CDN from hotlinkers’ is closed to new replies.