On Mon, 2003-07-21 at 11:02, Jim Cheetham wrote:
> On Sun, Jul 20, 2003 at 04:26:21PM +1200, Vik Olliver wrote:
> > Anyone got ideas for a rewrite rule or somesuch that'll stop Internet
> > Exploiter users accessing my Apache proxy?
>
> Use mod_rewrite to detect the HTTP_USER_AGENT string ...
>
> RewriteEngine On
> RewriteCond %{HTTP_USER_AGENT} ^Explorer.*
> RewriteRule ^/$ /buggeroff.html [L]
>
> See http://httpd.apache.org/docs/mod/mod_rewrite.html for details.
>
> Seeing as your apache has to look at the incoming request, get it to do
> the logic of rejection. don't fire up some CGI or PHP code to do it for
> you ... :-)
>
> -jim
Hmm, looks like she's clued in. Her IE HTTP_USER_AGENT string in the
logs looks like:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Vik :v)