hotlinking protection - wildcard redirection (1 post)

  1. altfgcom
    Posted 4 years ago #


    We have the following rule in our .htaccess file:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http://www.oursite.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.oursite.com$ [NC]
    RewriteCond %{HTTP_REFERER} .
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp.*.*jpg|jpeg|gif|png|bmp)$ http://www.oursite.com/ [R,NC]

    I there a way to do a RewriteRule so someone clicking on the hotlinked image will land on the page where the image is located -- instead of on our site's homepage?

    Any assistance would be much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic