• 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: https://www.daily-mash.com/dm/wp-content/uploads/2013/03/3-27-13-8.jpg

    and here is the current contents of my .htaccess file:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?daily-mash.com [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ https://daily-mash.com/dm/wp-content/uploads/graphics/hotlink.jpe [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]
    </IfModule>

    # 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.