With best regards, Victor Lazarchuk. E-mail: laz...@ukrpost.net
I would also have to question the wisdom of simply dropping the
connection, as this would mean your server does not follow the RFC. You
should instead respond with a 403 Forbidden or 406 Not Acceptable, or if
you wanted to be vague, 500 Internal Server Error. (Use mod_security
for the last two).
> I want to drop connection when Apache server
> receive HEAD-request .
> It is possible ?
> If it is possible how could i do this ?
Not sure what you mean by "drop connection", if you want to drop the
connection after serving the HEAD request, use
SetEnvIf Request_Method "HEAD" nokeepalive
If you want to disallow HEAD requests, you can do so with access control
directives (although disabling HEAD is generally not a good idea).
--
Klaus Johannes Rusch
Klaus...@atmedia.net
http://www.atmedia.net/KlausRusch/
what exactly do you want to do? if serving an error message and close
connection after that is ok, it could probably be reached with
something like:
<Limit HEAD>
SetEnv force-response-1.0 downgrade-1.0 nokeepalive
</Limit>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} HEAD
RewriteRule .* - [F]
just closing down the connection without an answer doesn't comply with
rfcs and would need a special handler...
joachim