Re: blocking request on the HOST value

From: Aleksandar Lazic <al-haproxy#none.at>
Date: Wed, 20 Aug 2008 16:11:58 +0200


Dear KÚvin,

On Mit 20.08.2008 12:54, MAZIERE KÚvin - AMEN wrote:
>Hi,
>
>I try to block access to apache server using haproxy for some http
>request containing the same HOST value
>I'm not familiar with acl and reqideny and other parameters, even after
>some tests and spending some time on the documentation...
>
>For example the request is like : wget http://foo.bar.com/ and I want to
>block this request because it contains the words foo.bar.com
>
>I try to use reqideny command like : reqideny
>^HOST:\foo\.bar\.com.*$,

Please try:

reqideny ^HOST: foo\.bar\.com

>but I'm sur that I do not understand the way reqideny works, because my
>rules doesn't work.
>
>Could someone help me to block a request which contain a certain host ?

Hth

Aleks Received on 2008/08/20 16:11

This archive was generated by hypermail 2.2.0 : 2008/08/20 16:16 CEST