Results 1 to 11 of 11
Jun 19, 2013, 07:15 #1
- Join Date
- Jan 2010
- 1 Post(s)
- 0 Thread(s)
Htaccess Control Of Specific Files
Is there any way to get this code to work for a specific jpg file, instead of all jpg files?
RewriteCond %HTTP_REFERER} !^http://www\.wxyz\.com/ [NC]
RewriteRule \.jpg$ - [F]
I tried changing the last line to
RewriteRule ^somespecificfile\.jpg$ - [F]
(with and without the carrot)
and it didn't work.
The code above allows jpg images in a webpage to show and doesn't allow jpg images to be brought up alone (somespecificfile.jpg) in a browser. I'd like this to work for one specific jpg instead of all jpgs.