Forum Moderators: phranque

Message Too Old, No Replies

Error Reading Headers

         

Frank_Rizzo

10:57 am on Jan 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For a few months a Latvian IP address is being logged with error reading headers.

I deny the IP in httpd.conf but it is still logging with this error. Surely the deny would be logged before the header error?

Here's the evidence:

access_log
85.234.184.150 - - [17/Jan/2007:10:38:32 +0000] "GET / HTTP/1.0" 400 1918 "-" "-" 2 widgets.co.uk "-" "-"

error_log
[Wed Jan 17 10:38:35 2007] [error] [client 85.234.184.150] request failed: error reading the headers

That's it. GET / is logged as accessed and three seconds later it is flagged up in the error log.

Why does this happen? Is it some kind of exploit?
Why aren't I seeing a 403 being logged instead?

httpd.conf
<Directory "/home/widgets/public_html">

Options FollowSymLinks

<Files ~ "^.*$">
order allow,deny
allow from all
deny from 129.21.0.0/16 #rochester
deny from 85.234.184.150 #latvia
#others here...
</Files>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^widgets\.co\.uk
RewriteRule (.*) http : // www . widgets.co.uk/$1 [R=301,L] (edit - delinked)
</Directory>

[edited by: Frank_Rizzo at 10:58 am (utc) on Jan. 17, 2007]

jdMorgan

6:26 pm on Jan 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The request itself is invalid. Therefore, the server rejects it with a 400-Bad Request error [w3.org], before even starting to process the Apache modules dealing with access control or URL-to-filename translation.

So the server itself is kicking them out because they're sending a request that it can't understand.

Jim

Frank_Rizzo

7:56 pm on Jan 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is this a dangerous thing? Is it an exploit?

As I say, this has been happening for months. You'd think Latvian Joe would get the message by now.

I guess in order to block this I need to deny in the hosts file rather than httpd.conf

jdMorgan

8:40 pm on Jan 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's harmless, except for the waste of your bandwidth. Block him at the firewall to get rid of him.

I can't tell from your posted log entry, but he's probably trying unsuccessfully and repeatedly to overrun one or more of your request input buffers. I can't imagine why he'd try more than once, though; If it doesn't work once, it won't work a thousand more times, either. Probably just badly-written code from a bad-intentioned and poorly-skilled coder.

Jim