htaccess or php, not sure what i would need

I wanted to know if this is possible for htaccess to do

password protect a folder named celeb (i will keep all my image content in there)

now i also want to be able to hotlink items in that folder to www.specificdomain.com and any other site i decide, but 1 only for now., if they try direct access, they shold be denied.

Is it possible to allow password access AND allow hotlinking to specified sites from same directory without issue?

 

 

 

 

Top