Welcome to WebmasterWorld Guest from 54.167.110.211

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Allowing one image to be hotlinked

Using mod_rewrite to allow one image to be linked

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

Junior Member

10+ Year Member

joined:May 31, 2002
posts:157
votes: 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

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

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 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

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

Junior Member

10+ Year Member

joined:May 31, 2002
posts:157
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members