[opensuse] Re: protecting online images
Le 28/12/2009 15:46, Duaine Hechler a écrit :
I found this script from one of my ecommerce packages I've tested.
In .htaccess file
RewriteEngine On
# Stop image theft
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?hechlerpianoandorgan\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
there is probably a solution like this. The problem is that these lines (and the similar ones I already found) are very cryptic, and have to be setup for my needs. Right now none of my tests did work. it have to be done simply because I use "piwigo" (open source php script). I'm in relation with the piwigo maintainer (they are french like me) but this don't seems to be a priority for us. but, before I go further, do you think the anonimisation I quoted can be usefull? is there a way to know all the filenames in the folder (of course apache don't list them) thanks jdd -- http://www.dodin.net http://valerie.dodin.org http://news.opensuse.org/2009/04/13/people-of-opensuse-jean-daniel-dodin/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
jdd-gmane said the following on 12/28/2009 02:27 PM:
but, before I go further, do you think the anonimisation I quoted can be usefull? is there a way to know all the filenames in the folder (of course apache don't list them)
No, I don't. I think the problem is that you are expressing you needs badly. Maybe it's a language problem. Lets take it in parts: You have some images that you want publicly available You have some that you don't want publicly available. Why don't you put them in different directories (folders) and have differnt access controls on each direcotry? There are a number of ways of doing the access control. The ReWrite Engine example is one of them. Yes the syntax is brutal, but its well documented. RTFM. Take it in parts. Having password access is another. There are many more. See the Apache documentation. And yes, if you configure it right, Apache will give a listing of all the files in a folder. RTFM. The on-line manuals give many examples. -- What is a magician but a practicing theorist? -- Obi-Wan Kenobi, 'Return of the Jedi' -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Anton Aylward
-
jdd-gmane