httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CDitty <m...@redhotsweeps.com>
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 
stuff)

RewriteEngine On
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://.*redhotsweeps.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$|.*[Pp][Nn][Gg]$
http://www.redhotsweeps.com/ [R,L]                              [F]

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

> > AuthUserFile /dev/null
> > AuthGroupFile /dev/null
>
>Unnecessary.
>
> > RewriteEngine On
> > RewriteOptions inherit
> > RewriteCond %{HTTP_REFERER} !^http://.*redhotsweeps.com/.*$ [NC]
> > RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$|.*[Pp][Nn][Gg]$
> > http://www.redhotsweeps.com/ [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.
>
>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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message