Forum Moderators: phranque

Message Too Old, No Replies

Allow one image

How do I allow only one image to be hotlinked?

         

mobiledia

8:59 pm on Aug 20, 2004 (gmt 0)



I have an anti-hotlinking command in my htaccess file. How do I go about allowing only one file to be hotlinked?

jdMorgan

12:17 am on Aug 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add a RewriteCond [httpd.apache.org] above your anti-hotlinking RewriteRule to conditionally exclude that image file from rule.

Jim

mobiledia

12:43 am on Aug 21, 2004 (gmt 0)



Thanks Jim,

I have looked at the page and am still somewhat confused as to how I would go about writing the syntax. I admit I am not very knowledgeable when it comes to apache. For instance, I have prevented all images from being linked. However I'd like one image to be viewable by all called "example.jpg" Could someone give me an example?

jdMorgan

12:47 am on Aug 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's an example [webmasterworld.com], found by searching WebmasterWorld.

Jim