I wonder if any visitor to this post can provide a solution to the problem give, it would be fantastic to get a solution! If this is not the right forum to post this query, alternative forum suggestions welcomed.
The .htaccess file shown below is placed in my home directory to foil attempts of deep linking and to thwart viewing the contents of directories. It produces a 403 error for which I have created a custom written page.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://lorage.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://lorage.co.uk$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lorage.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lorage.co.uk$ [NC]
RewriteRule .*\.(jpg|js|jpeg|gif|bmp)$ - [F,NC]
Options -Indexes
This works just fine. Unfortunately I do not fully understand the syntax or options available within an .htaccess to tweak it slightly so that deep hyperlinking to a single image is possible. A Google search indicated that shown below should achieve this aim but unfortunately it doesn’t work.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://lorage.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://lorage.co.uk$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lorage.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lorage.co.uk$ [NC]
RewriteRule .*\.(jpg|js|jpeg|gif|bmp)$ http://www.lorage.co.uk/dummy.jpg [R,L]
Options -Indexes
Thoughts from anyone of how to tweak my .htaccess file so that it does everything shown in the top example but additionally allows deep hyperlinking ONLY to http://www.lorage.co.uk/dummy.jpg would be very much welcomed.