You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2004/03/19 17:14:20 UTC

Re: [users@httpd] Protecting Your Images

On Fri, 19 Mar 2004, rott wrote:

> Im using apache 2.0.47 on a win2000 Pro  computer and I want to protect my
> gif's and jpeg's I found this nice code for doing that but every time I
> start apache I get and error from apache
> RewriteCond: bad flag delimiters
>
>  the code is found here
> http://www.serverwatch.com/tutorials/article.php/10825_1132731_4
>
> SetEnvIfNoCase Referer !"^http://my.apache.org/" not_local_ref=1
> SetEnvIfNoCase Request_URI ".(gif|jpg)" is_image=1
> RewriteEngine On
> RewriteCond $ {ENV:not_local_ref} =1

ServerWatch seems to have mangled their example at some point by putting a
space between the $ and the {ENV...  Why don't you take a look at Ken's
own site, where the examples look better:
http://apache-server.com/tutorials/ATimage-theft.html

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org