Support » Fixing WordPress » Allow hotlinking for thumbnails

  • Hi!

    I’m wondering if there’s a way to allow hotlinking for thumbnails and ban it for everything else. My thumbnails have the following syntax.

    filename-150×150.jpg

    Thanks in advance

Viewing 1 replies (of 1 total)
  • leemon

    (@leemon)

    I came up with a solution. Put the following lines in the .htaccess file:

    RewriteCond %{REQUEST_URI} !-150x150\.jpg$
    RewriteRule .*\.(jpg|jpeg)$ - [F,NC]
Viewing 1 replies (of 1 total)
  • The topic ‘Allow hotlinking for thumbnails’ is closed to new replies.