Forum Moderators: phranque
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$ [NC]
RewriteCond %{HTTP_REFERER}!^http://(.*@)?([a-z0-9-]+\.)*MyDomain.com(:[0-9]+)?(/.*)?$ [NC]
RewriteRule .*\.(asf¦mpg¦mpeg¦wmv¦avi¦rm¦gif¦jpeg¦jpg)$ - [NC,F,L]
I would like people to be able to hotlink some files so people who syndicate my RSS feed can see the photos with the article.
All the files I would allow to be hotlinkied look like this: file-1t.jpg, file-2t.jpg etc... As you can see they all end with a number and "t". Is there a way to modify my .htaccess code to allow hotlinking of these files.
Thank you
Being relatively inexperienced with .htaccess I did several searches for examples of what you mentioned but couldn't find any.
Could you or some other smart person give me an example of what the expression should look like? I have no problem researching on my own. In this situation it's been tough finding relevant info aside from your suggestion.
RewriteCond %{REQUEST_URI} !-[0-9]+t\.jpg$
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim