httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CDitty <>
Subject Re: htaccess problems
Date Sat, 09 Feb 2002 16:20:47 GMT
Thanks.  Something like this?  (I've never really been able to grasp this 

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]

At 10:16 AM 2/9/2002, you wrote:

> > AuthUserFile /dev/null
> > AuthGroupFile /dev/null
> > RewriteEngine On
> > RewriteOptions inherit
> > RewriteCond %{HTTP_REFERER} !^http://.**$ [NC]
> > RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$|.*[Pp][Nn][Gg]$
> > [R,L]                              [F]
>You need to check your log files to see what referer these particular
>clients are sending.  It is possible the client is not sending correct
>referers, or it is possible that your Rewrite rules are off.
>In general, to be safe, I would include an additional
>RewriteCond %{HTTP_REFERER} !^$
>in order to allow through browsers that send no Referer header.

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