Support » How-To and Troubleshooting » hotlinking protection – wildcard redirection

hotlinking protection – wildcard redirection

  • altfgcom



    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.

  • The topic ‘hotlinking protection – wildcard redirection’ is closed to new replies.
Skip to toolbar