Support » Fixing WordPress » hotlinking protection – wildcard redirection

  • Hellow,

    We have the following rule in our .htaccess file:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^*$ [NC]
    RewriteCond %{HTTP_REFERER} !^$ [NC]
    RewriteCond %{HTTP_REFERER} .
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp.*.*jpg|jpeg|gif|png|bmp)$ [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.