PDA

View Full Version : Swipe my image will you....


YFS200
01-15-2001, 11:49 AM
Got someone using my photos to sell stuff on ebay. Not really a big thing, but just annoying to see that in my stats every month.[nbsp][nbsp]So I have moved the photos and replaced them with pokeymon images.

But the kicker is that it is under a password protected area of my site. In the ebay post, is the username and password used to access it. The password has sinced changed.[nbsp][nbsp]
I would like to some how remove the pokeymon images out of the .htaccess password protection so thay will show up. But I can't move the images, and I can't seem to find a way in the Apache docs to overide the passwords in the .htaccess file.

Any tricks anyone knows of?
Thanks
YFS200[nbsp][nbsp][nbsp]

Tibbits
01-15-2001, 05:25 PM
Would this work?

<files &quot;*.jpg&quot;>
Order Allow, Deny
Allow from All
<files>

YFS200
01-16-2001, 01:43 AM
That's what I tought too. But I get the good old 500 server error.

YFS200

Tibbits
01-16-2001, 08:39 AM
Perhaps doing a rewrite on the images? it's been explained in this forum recently.. there was a new thread about it today in fact.

Justin
01-17-2001, 12:39 AM
The 'Allow from all' won't work, as the images aren't being denied, not in the same sense as password protection. What you'd need to do is password protect conditionally. What you need to do is protect only the non-image files. For example, if you only have image and HTML files, try something like this:
</font><font face="Courier" size="3">
<FilesMatch &quot;.*\.html$&quot;>
[place password protection stuff here]
</FilesMatch>
</font><font face="Verdana, Arial" size="2">
This would protect only your html files. Of course if you have a lot of other file types this could get more messy...

------------------
Justin Nelson
SFE Software (http://www.sfesoftware.com)

Tibbits
01-17-2001, 02:15 PM
if there were many different file extensions, wouldn't a
!= *.gif
type statement work?
What sort of extra demand on the server would this cause as opposed to protecting the whole directory?