On Thu, 7 Nov 2002 11:46:19 -0800 Todd Lyons <[EMAIL PROTECTED]>
wrote:

> Franki wrote on Thu, Nov 07, 2002 at 06:40:45PM +0800 :
> > 
> > I am sick to death of my error_log for http being full of cmd.exe and
> > root.exe stuff..
> > my logs are always 90% full of this crap.
> > anyone got any ideas???
> 
> In your /etc/httpd/conf/commonhttpd.conf file, put this:
> 
> <IfModule mod_rewrite.c>
>       redirect /MSADC http://www.microsoft.com
>       redirect /c http://www.microsoft.com
>       redirect /d http://www.microsoft.com
>       redirect /_mem_bin http://www.microsoft.com
>       redirect /msadc http://www.microsoft.com
>       RedirectMatch (.*)\cmd.exe$ http://www.microsoft.com$1
> </IfModule>

Todd,

>From analyzing my logs, it appears that this could be greatly simplified:

<IfModule mod_rewrite.c>
      RedirectMatch (.*\.exe\?) http://www.microsoft.com$1
</IfModule>

since all attempts contain ".exe?" -- and this would allow a site to
continue serving *.exe files without redirecting all those to M$...

Besides, shouldn't "\cmd.exe" really be "cmd\.exe"?  Also, correct me if
I'm wrong; but don't we want the *entire* path to be appended to the M$
URL...?  :>

Considering that my self-defense argument has been posted
(http://pfortin.com/Linux/MSVTS) for over a year, I think it's time I took
it another step closer to the ROOT CAUSE (M$Windows)...  :^)

Pierre



> Blue skies...                 Todd

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to