httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: htaccess problems
Date Sat, 09 Feb 2002 16:31:13 GMT

On Sat, 9 Feb 2002, CDitty wrote:

> Thanks.  Something like this?  (I've never really been able to grasp this
> stuff)
> RewriteEngine On
> RewriteOptions inherit
> RewriteCond %{HTTP_REFERER} !^http://.**$ [NC]
> RewriteCond %{HTTP_REFERER} !^$ [NC]
> RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$|.*[Pp][Nn][Gg]$
> [R,L]                              [F]


I'm also not sure about your RewriteRule.  It doesn't look like a proper
regular expression to me.  But if it works, it works.

My guess would be more along the lines:
RewriteRule .*\.(jpg|gif|png)$ [R,L,NC]

As I said, the only way to really figure out what is going on is to make
use of your log files (extended/combined access_log plus rewritelog).


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message