homepage Welcome to WebmasterWorld Guest from 54.224.179.98
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Allowing one image to be hotlinked
Using mod_rewrite to allow one image to be linked
Bluestreak




msg:1515559
 6:01 am on Dec 26, 2002 (gmt 0)

Hello all,

I'm using mod_rewrite to prevent bandwidth theft and hotlinking of my graphices and images. However, I also have an RSS feed, and I want to be able to write an exception in my htaccess file to allow the RSS logo image for my feed to be remotely linked. Is there a way to do that? Appreciate any help :D

 

jdMorgan




msg:1515560
 6:18 am on Dec 26, 2002 (gmt 0)

Bluestreak,

Sure, just precede your remote-linking-block rewrite rule with an exclusionary RewriteCond:

RewriteCond %{REQUEST_URI}!allowed_image\.gif$

This will be in addition to the RewriteCond(s) that allows access if the referrer is your own domain, is blank, or is a known allowed entity such as the Google or WebHippo cache, or the Google or AltaVista page translator.

Jim

Bluestreak




msg:1515561
 4:23 pm on Dec 26, 2002 (gmt 0)

Thanks! I knew there was a commandline for it, just didnt know the correct format. Happy New Year :D

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved