hotlinking protection – wildcard redirection
-
Hellow,
We have the following rule in our .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^https://www.oursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.oursite.com$ [NC]
RewriteCond %{HTTP_REFERER} .
RewriteRule .*\.(jpg|jpeg|gif|png|bmp.*.*jpg|jpeg|gif|png|bmp)$ https://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.