Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-26-2002, 05:27 PM   PM User | #1
Rachelle1983
New to the CF scene

 
Join Date: Dec 2002
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rachelle1983 is an unknown quantity at this point
urgent htaccess help

Hi I need some help with a htaccess file i am working on.
I need a htaccess to allow visitors to view thumnails of pictures that have a particular suffix (eg. *thumb.jpg) but if they want to view the full picture (ie. click on the thumb) they are required to enter a username and password (the full image does not have 'thumb' in the filename)

I have searched far and wide for an answer and have come up with this so far (which doesn't work) -

AuthType Basic
AuthName "Private Stuff"
AuthUserFile /home/www.mysite.com/web/cgi-bin/passwords/.htpasswd
<Limit GET POST PUT>
require valid-user
</Limit>
<Files *thumb.jpg>
allow from all
deny from .microsoft.com
</Files>


perhaps im ordering it all wrong or the 'files' command could be nested some how, i have no idea but any help with this would be much appreciated

Thankyou
Rachelle1983 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:16 AM.


Advertisement
Log in to turn off these ads.