Support » Fixing WordPress » changed .htaccess to prevent hotlinking and its not working

  • So I have been trying to prevent people from hotlinking to my image files – I followed the tutorial on this page and for some reason when I test my images in the field below the tutorial – it says they can still be hotlinked – can anyone see what I am doing wrong? Here is the url for an image from my site:

    and here is the current contents of my .htaccess file:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)? [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ [NC,R,L]

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /dm/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /dm/index.php [L]

    # END WordPress

    Can anyone tell me what I am doing wrong? Thanks in advance for the help!

  • The topic ‘changed .htaccess to prevent hotlinking and its not working’ is closed to new replies.