htaccess and anit-hotlinking

Ok, so I'm pretty new to extensive screwing with the htaccess file. However, I am in need of a bit of assistance.

I currently have been having a lot of problems with people hotlinking to various files on my site. A fellow webmaster send me an example of what to put inside my htaccess file to stop that, and it worked just fine. However, now I need to ALLOW hotlinking to one directory, but nothing else on the domain. Here is what I have that my friend sent me:

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On
        RewriteCond %{HTTP_REFERER} !^$
        RewriteCond %{HTTP_REFERER} !^(Link:*$)*$ [NC]
        RewriteCond %{HTTP_REFERER} !^(Link:*$)*$ [NC]
        RewriteCond %{HTTP_REFERER} !^(Link:*$)*$ [NC]
        RewriteCond %{HTTP_REFERER} !^(Link:*$)*$ [NC]
        RewriteCond %{HTTP_REFERER} !^(Link:*$)*$ [NC]
        RewriteCond %{HTTP_REFERER} !^(Link:*$)*$ [NC]
        RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ (Link: [R,L]

So basically, I need to keep this intact, but ALLOW hotlinking to for instance. Any insight? I'd offer more than 100 points on this, but that's all I have right now.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi Thora Fan,

If you are interested to block hot-linking to all your sits, while allowing to a specific directory;

you could have a separate <Directory> or <Location> tag for the specified resources and allow hotlinking there.

some related PAQ.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.