# Strange question about hdr\_dom(host) function

**URL:** <https://discourse.haproxy.org/t/strange-question-about-hdr-dom-host-function/1704>\
**Category:** Help!\
**Created:** [October 23, 2017, 7:56am UTC](https://discourse.haproxy.org/t/strange-question-about-hdr-dom-host-function/1704 "2017-10-23T07:56:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanggis](https://avatars.discourse-cdn.com/v4/letter/y/3da27b/32.png) [@yanggis](https://discourse.haproxy.org/u/yanggis)\
**Post date:** [October 23, 2017, 7:56am UTC](https://discourse.haproxy.org/t/strange-question-about-hdr-dom-host-function/1704/1 "2017-10-23T07:56:38Z")

</div>

Dear all:  
I’m using the fuction ddr\_dom(host) to filter some links:  
The initial acl rule is as follows:  
acl is\_newsohu path\_beg /vrs\_flash hdr\_dom(host) -i [hot.vrs.sohu.com](http://hot.vrs.sohu.com)  
use\_backend proxy-sohuPhone if is\_newsohu  
It is not working correctly for the link (see next reply) which should pass the rule, instead of blocked by the rule.

Then I updated the acl rule to this:  
acl is\_newsohu path\_beg /vrs\_flash hdr\_dom(host) -i [hot.vrs.sohu.com:80](http://hot.vrs.sohu.com:80)  
use\_backend proxy-sohuPhone if is\_newsohu

It is still not working either.

Can you guys help me check how to fix this issue?

---

<div class="post-metadata">

**Author:** ![yanggis](https://avatars.discourse-cdn.com/v4/letter/y/3da27b/32.png) [@yanggis](https://discourse.haproxy.org/u/yanggis)\
**Post date:** [October 23, 2017, 8:00am UTC](https://discourse.haproxy.org/t/strange-question-about-hdr-dom-host-function/1704/2 "2017-10-23T08:00:07Z")

</div>

this link is "[http://hot.vrs.sohu.com:80/vrs\_flash.action?vid=4159698](http://hot.vrs.sohu.com:80/vrs_flash.action?vid=4159698)"  
Both rules are not working for this link.

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [October 23, 2017, 10:43am UTC](https://discourse.haproxy.org/t/strange-question-about-hdr-dom-host-function/1704/3 "2017-10-23T10:43:12Z")

</div>

Just use hdr(host), without \_dom.
