Forum Moderators: phranque
[29/Apr/2004:21:13:15 -0400] "SEARCH /\x90\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\
x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\
xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\
x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\
xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1
This is only part of it,there's lots more on that one.
I thought I read on here some where that this code was a virus.
I did a Whois lookup on the ip and it's from Lincoln Telephone Company.
I try'ed the deny from 139.55. and it still don't work. So what I'm asking is, just where in the htaccess file do you place the deny from at.
<Files .htaccess>
order allow,deny
deny from all
</Files>
order allow,deny
deny from 139.55.
allow from all
I did searchs on the net and not one place I found said any thing about the order of how deny from are placed in the htaccess file. I don't know what else to do.
Apache 1.3.24
php 4.3.3
Mysql 4.0.18
running on windows XP pro
[edited by: jdMorgan at 3:07 am (utc) on April 30, 2004]
[edit reason] Fixed side-scroll due to long line [/edit]
The placement doesn't matter. In effect, each Apache module parses your .htaccess file, and takes the directives it can handle. The order of module processing is set by the server configuration, and not by the order of .htaccess directives.
I seem to recall someone having a problem because of multiple Order statements in .htaccess -- It's possible .htaccess can have only one Order directive. Try this and see if it works better:
Order allow,deny
<Files *>
Allow from all
Deny from 139.55.
</Files>
<Files .htaccess>
Deny from all
</Files>
Jim
Didn't work.
The "SEARCH" request still got through,
<LimitExcept POST OPTIONS HEAD>
Order deny,allow
Deny from xx.xx.xx.****
</LimitExcept>
If anyone has had success blocking the "SEARCH" request please post.
Thank you.
This mod_rewrite code works on several dozen sites:
RewriteCond %{REQUEST_METHOD} !^(GET¦HEAD¦OPTIONS¦POST¦PROPFIND¦TRACE)$
RewriteRule .* - [F]
SetEnvIf Request_Method "^SEARCH$" getout
Deny from env=getout