Hi! I have a folder called "myfolder" on my server, it contains images(jpg,jpeg,gif...etc). my website domain is "www.mysitedomain.com". I want to deny direct access to any image inside that folder, but allow any .php or .htm page inside my website to access these images and display them through the tag <img src=''>.

I used .htaccess file with following:
Code:
Order deny,allow
Deny from all
Allow from www.mysitedomain.com
that didn't work. It deny access to all, even my site mysitedomain.com!?
I need deny access to all except my site mysitedomain.com how can I do that?

Thanks in advance