Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RewriteCond question

Status
Not open for further replies.

btaber

Programmer
May 26, 2002
307
US
I am trying to do a rewrite condtition for one of those damn viruses that keeps filling up my logs. This is what I currently have:

RewriteCond %{REQUEST_FILENAME} (/root\.exe)|(/cmd\.exe)
RewriteRule ^(.*)$ - [F] #(Gives forbidden)

it workd if I type in /cmd.exe anywhere in the url, but they are still appearing in the log. Oneof the errors I get is:

File does not exist: /var/
if I type that in in the url, I get a not found error... what am I doing wrong?

and they end up there about 200+ time a day...

any clues?

B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top