WordPress.org

Ready to get started?Download WordPress

Forums

changed .htaccess to prevent hotlinking and its not working (1 post)

  1. rileybetka
    Member
    Posted 1 year ago #

    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: http://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)$ http://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!

Topic Closed

This topic has been closed to new replies.

About this Topic