|
-
Feb 5th, 2012, 06:18 AM
#1
Thread Starter
Hyperactive Member
Allow access to images only through my website pages
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|